[Ns-bugs] [Bug 337] opt build fails in address.cc on Ubuntu 8.10
bugzilla-daemon@nsnam-www.ece.gatech.edu
bugzilla-daemon at nsnam-www.ece.gatech.edu
Thu Sep 11 09:01:50 PDT 2008
http://www.nsnam.org/bugzilla/show_bug.cgi?id=337
------- Comment #4 from raj.b at gatech.edu 2008-09-11 12:01 -------
It looks like copy-paste type of error to me. Maybe you started by trying to
enforce a good practice of initializing all of your memory (which was fine when
m_len > 0 and you have no data to copy). Then the cases came up where you DID
have data to copy, and a few copy and pastes later, that practice becomes
erroneous and we have the current code.
The alternative to the "just get rid of the compiler warning" solution then is
remove all of these superfluous memsets.
Craig I'm not sure I follow your comment...isn't sizeof(m_data) always a
constant, the size of a pointer on your architecture (probably 4 bytes)?
--
Configure bugmail: http://www.nsnam.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the Ns-bugs
mailing list