[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [bug #35587] Uninitialized pointer
From: |
Simon Goldschmidt |
Subject: |
[lwip-devel] [bug #35587] Uninitialized pointer |
Date: |
Wed, 22 Feb 2012 08:27:16 +0000 |
User-agent: |
Mozilla/5.0 (Windows NT 5.1; rv:10.0.2) Gecko/20100101 Firefox/10.0.2 |
Update of bug #35587 (project lwip):
Status: None => Invalid
Open/Closed: Open => Closed
_______________________________________________________
Follow-up Comment #1:
In C, global uninitialized variables (no matter if 'static' or globally
visible), are implcitly initialized to '0' (or 'NULL' for pointer types). This
must be done by the startup code before 'main()' is called (e.g., for gcc, the
section '.bss' is cleared by looping over the whole section and filling it
with zeros).
This is part of the C standard. If it's not working for you, there's a bug in
your startup code. This is a common error found in hand-written startup code.
Some compilers allow skipping the initialization to save space, but that's not
standard conformant.
Closing as invalid.
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?35587>
_______________________________________________
Nachricht geschickt von/durch Savannah
http://savannah.nongnu.org/