[pisa-src] r1404 - trunk/libpisa/hitlist.c

  • From: Thomas Jansen <mithi@xxxxxxxxx>
  • To: pisa-src@xxxxxxxxxxxxx
  • Date: Thu, 29 Oct 2009 14:37:26 +0100

Author: tjansen
Date: Thu Oct 29 14:37:26 2009
New Revision: 1404

Log:
Initializing tm makes valgrind happy.

Modified:
   trunk/libpisa/hitlist.c

Modified: trunk/libpisa/hitlist.c
==============================================================================
--- trunk/libpisa/hitlist.c     Thu Oct 29 14:32:37 2009        (r1403)
+++ trunk/libpisa/hitlist.c     Thu Oct 29 14:37:26 2009        (r1404)
@@ -35,6 +35,7 @@
        } else {
                struct tm tm;
                pisa_cfg_get_group_string_value(g, "expires", buffer, 
sizeof(buffer));
+               memset(&tm, 0, sizeof(tm));
                strptime(buffer, "%Y-%m-%d %H:%M:%S", &tm);
                hl->entries[hl->cur_slots].expiration = mktime(&tm);
                hl->cur_slots++;

Other related posts:

  • » [pisa-src] r1404 - trunk/libpisa/hitlist.c - Thomas Jansen