[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [patch #7737] Initialize all global variables to 0 or NULL.
From: |
Simon Goldschmidt |
Subject: |
[lwip-devel] [patch #7737] Initialize all global variables to 0 or NULL. |
Date: |
Wed, 07 Mar 2012 10:44:52 +0000 |
User-agent: |
Mozilla/5.0 (Windows NT 5.1; rv:10.0.2) Gecko/20100101 Firefox/10.0.2 |
Update of patch #7737 (project lwip):
Status: None => Wont Do
Open/Closed: Open => Closed
_______________________________________________________
Follow-up Comment #1:
We've had this before, and voted against doing so as from the C standard,
variables with static storage have to be initialized to 0 or NULL by the C
startup code. If you have problems with this, you're either reinitializing
lwIP or have a C compiler/runtime that doesn't conform to the standard.
See also this thread from lwip-users (be sure to read the whole thread):
https://lists.gnu.org/archive/html/lwip-users/2010-11/msg00024.html
If that doesn't help you, it might help to put all global lwIP variables (you
might want to leave out the heap and the pools) into a dedicated section and
zero that whole section in your own startup code.
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/patch/?7737>
_______________________________________________
Nachricht geschickt von/durch Savannah
http://savannah.nongnu.org/