Skip to content

Commit

Permalink
Avoid warnings and access to uninitialized memory.
Browse files Browse the repository at this point in the history
  • Loading branch information
kohler committed Oct 3, 2018
1 parent 066f282 commit 884ea9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion elements/test/packettest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ PacketTest::PacketTest()
int
PacketTest::initialize(ErrorHandler *errh)
{
const unsigned char *lowers = (const unsigned char *)"abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz";
const unsigned char *lowers = (const unsigned char *)"abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0";
IPAddress addr(String("1.2.3.4"));

Packet *p = Packet::make(10, lowers, 20, 30);
Expand Down

0 comments on commit 884ea9e

Please sign in to comment.