Bug 856 - DropTailQueue: uninitialized variable
DropTailQueue: uninitialized variable
Status: VERIFIED FIXED
Product: ns-3
Classification: Unclassified
Component: network
ns-3.7
All All
: P5 normal
Assigned To: ns-bugs
: bug
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-04-03 18:42 UTC by Dmitry Shinkaruk
Modified: 2010-04-15 18:14 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry Shinkaruk 2010-04-03 18:42:22 UTC
Variable m_bytesInQueue should be initialized. Sometimes it is impossible to add packet in queue because the variable initially is not equal to zero and method Enqueue fails wen the mode is set to BYTES.
Comment 1 Craig Dowell 2010-04-15 18:14:00 UTC
After extensive study and research, our blue-ribbon committee has voted that it is probably a good idea to initialiaize variables before use.

Fixed changeset 1204777b0bcf