From 23d969124fc5ed1356dfc8f6ec0ae8de674a0fb2 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 1 Nov 2014 05:18:11 +0100 Subject: zero-initialize all floats --- ftnoir_tracker_freepie-udp/ftnoir_tracker_freepie-udp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ftnoir_tracker_freepie-udp') diff --git a/ftnoir_tracker_freepie-udp/ftnoir_tracker_freepie-udp.cpp b/ftnoir_tracker_freepie-udp/ftnoir_tracker_freepie-udp.cpp index 4ba5188f..89311bf0 100644 --- a/ftnoir_tracker_freepie-udp/ftnoir_tracker_freepie-udp.cpp +++ b/ftnoir_tracker_freepie-udp/ftnoir_tracker_freepie-udp.cpp @@ -50,7 +50,7 @@ void TrackerImpl::run() { while (sock.hasPendingDatagrams()) { using t = decltype(data); - t tmp {0,0, {0,0,0, 0,0,0}}; + t tmp {0,0, {0,0,0, 0,0,0, 0,0,0, 0,0,0}}; (void) sock.readDatagram(reinterpret_cast(&tmp), sizeof(data)); int flags = tmp.flags & F::Mask; -- cgit v1.2.3