After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 606447 - Initialize structure fields to 0
Initialize structure fields to 0
Status: RESOLVED FIXED
Product: pygi
Classification: Deprecated
Component: general
unspecified
Other Linux
: Normal enhancement
: 0.6
Assigned To: Simon van der Linden
pygi-maint
Depends on:
Blocks: 603537
 
 
Reported: 2010-01-08 20:17 UTC by Simon van der Linden
Modified: 2010-01-08 20:35 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Initialize structure fields to 0 when allocating (1.42 KB, patch)
2010-01-08 20:17 UTC, Simon van der Linden
committed Details | Review

Description Simon van der Linden 2010-01-08 20:17:10 UTC
Created attachment 151061 [details] [review]
Initialize structure fields to 0 when allocating

Structure fields should be initialized to 0 when the memory chunk is allocated in the constructor. This is necessary if we want to make the creation of structures containing pointers possible.
Comment 1 Tomeu Vizoso 2010-01-08 20:31:49 UTC
Review of attachment 151061 [details] [review]:

Thanks!
Comment 2 Simon van der Linden 2010-01-08 20:35:14 UTC
Review of attachment 151061 [details] [review]:

Committed as b11cf25