Publishing nanopb-0.3.6
[apps/agl-service-can-low-level.git] / tests / backwards_compatibility / decode_legacy.c
index 9dfe437..5f5b6bb 100644 (file)
    the decoding and checks the fields. */
 bool check_alltypes(pb_istream_t *stream, int mode)
 {
-    AllTypes alltypes;
-    
-    /* Fill with garbage to better detect initialization errors */
-    memset(&alltypes, 0xAA, sizeof(alltypes));
+    AllTypes alltypes = {0};
     
     if (!pb_decode(stream, AllTypes_fields, &alltypes))
         return false;