-init
authorChristian Grothoff <christian@grothoff.org>
Thu, 15 Mar 2012 13:42:56 +0000 (13:42 +0000)
committerChristian Grothoff <christian@grothoff.org>
Thu, 15 Mar 2012 13:42:56 +0000 (13:42 +0000)
src/transport/gnunet-helper-transport-wlan.c

index ebb4ac10fe657e7436affcd2e6129efb7db55c4b..51b9ba32d01062ec1c195b5dd3f1bb4bf3e91d78 100644 (file)
@@ -1158,6 +1158,7 @@ linux_read (struct HardwareInfos *dev, unsigned char *buf, size_t buf_size,
     struct ieee80211_radiotap_iterator iterator;
     struct ieee80211_radiotap_header *rthdr;
 
+    memset (&iterator, 0, sizeof (iterator));
     rthdr = (struct ieee80211_radiotap_header *) tmpbuf;
 
     if (0 != ieee80211_radiotap_iterator_init (&iterator, rthdr, caplen))