From: SourceForge.net <no...@so...> - 2003-05-13 11:53:48
|
Bugs item #737001, was opened at 2003-05-13 13:53 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=737001&group_id=599 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Bernhard Held (bernhardheld) Assigned to: Nobody/Anonymous (nobody) Summary: Not explictely initialized static variables are undefined Initial Comment: zeropad_storage_idata.c struct x { short a; char b[10]; }; struct x idata teststruct[3] = { { 10, { 1, 2, 3, 4, 5} }, { 20, { 11 } }, { 30, { 6, 7, 8} } }; teststruct[0].b[5]...b[9] ... are not initialized to 0. bug-227710.c struct { unsigned char index; } s; s.index isn't initialized to 0. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=737001&group_id=599 |