PUD: Clear the message before filling it
authorFerry Huberts <f.huberts@mindef.nl>
Fri, 21 Oct 2011 14:24:56 +0000 (16:24 +0200)
committerFerry Huberts <f.huberts@mindef.nl>
Fri, 21 Oct 2011 15:30:22 +0000 (17:30 +0200)
Signed-off-by: Ferry Huberts <f.huberts@mindef.nl>
lib/pud/src/gpsConversion.c

index eea7f95..ca11ca0 100644 (file)
@@ -248,6 +248,7 @@ unsigned int gpsToOlsr(nmeaINFO *nmeaInfo, union olsr_message *olsrMessage,
        /*
         * Compose message contents
         */
+       memset(olsrGpsMessage, 0, sizeof (PudOlsrPositionUpdate));
 
        setPositionUpdateVersion(olsrGpsMessage, PUD_WIRE_FORMAT_VERSION);
        setValidityTime(&olsrGpsMessage->validityTime, validityTime);