summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2014-11-01 05:18:11 +0100
committerStanislaw Halik <sthalik@misaki.pl>2014-11-01 05:19:01 +0100
commit23d969124fc5ed1356dfc8f6ec0ae8de674a0fb2 (patch)
tree77042cb26d56c3810d3ea6744b8bd701cbe6bdae
parentd5fd9e7463fbb8554e775a1208e951f6bbeed846 (diff)
zero-initialize all floats
-rw-r--r--ftnoir_tracker_freepie-udp/ftnoir_tracker_freepie-udp.cpp2
1 files changed, 1 insertions, 1 deletions
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<char*>(&tmp), sizeof(data));
int flags = tmp.flags & F::Mask;