Message181029
Yes, it's guaranteed:
6.7.8 Initialization
--------------------
10) If an object that has automatic storage duration is not initialized
explicitly, its value is indeterminate. If an object that has static
storage duration is not initialized explicitly, then:
- if it has pointer type, it is initialized to a null pointer;
- if it has arithmetic type, it is initialized to (positive or unsigned)
zero;
- if it is an aggregate, every member is initialized (recursively)
according to these rules;
- if it is a union, the first named member is initialized (recursively)
according to these rules.
I'm changing the title so that people don't get the impression that
anything is wrong with the initialization.
The Py_CLEAR() changes are fine of course. |
|
Date |
User |
Action |
Args |
2013-01-31 15:37:25 | skrah | set | recipients:
+ skrah, serhiy.storchaka |
2013-01-31 15:37:25 | skrah | set | messageid: <1359646645.0.0.897225060643.issue17034@psf.upfronthosting.co.za> |
2013-01-31 15:37:24 | skrah | link | issue17034 messages |
2013-01-31 15:37:24 | skrah | create | |
|