* zero out variable before use
authorMichal Voců <michal@ruk.cuni.cz>
Thu, 22 Mar 2007 08:18:15 +0000 (08:18 +0000)
committerMichal Voců <michal@ruk.cuni.cz>
Thu, 22 Mar 2007 08:18:15 +0000 (08:18 +0000)
org.glite.lb.logger/src/event_store.c

index 54c50f8..4d7ca6b 100644 (file)
@@ -405,6 +405,7 @@ event_store_recover(struct event_store *es)
   }
 
   /* check the file modification time and size to avoid unnecessary operations */
+  memset(&stbuf, 0, sizeof(stbuf));
   if(fstat(fd, &stbuf) < 0) {
          il_log(LOG_WARNING, "    could not stat event file %s: %s\n    continuing anyway\n", es->event_file_name, strerror(errno));
   } else {