]> git.localhorst.tv Git - blank.git/blobdiff - tst/net/PacketTest.cpp
initialize packet control in test
[blank.git] / tst / net / PacketTest.cpp
index 751421b2f9bcb351090c34776ea4c777adbceec9..b5f9eed57f506255a56af4a63991c494757ec7ee 100644 (file)
@@ -45,8 +45,7 @@ void PacketTest::testSizes() {
 }
 
 void PacketTest::testControl() {
-       Packet::TControl ctrl;
-       ctrl.ack = 10;
+       Packet::TControl ctrl{ 0, 10, 0 };
 
        CPPUNIT_ASSERT_MESSAGE(
                "TControl should ack the packet in the ack field",