diff remap.c @ 375:5820649e5aa2 src

in remap_loadmap() memzero tmp before using it; patch by Erik Hovland org
author nicodvb
date Thu, 05 Jun 2008 10:27:01 +0000
parents 587353009f65
children 2e9382be8e25
line wrap: on
line diff
--- a/remap.c	Thu Jun 05 10:24:24 2008 +0000
+++ b/remap.c	Thu Jun 05 10:27:01 2008 +0000
@@ -200,6 +200,7 @@
     block_t tmp;
     remap_t *map;
 
+    memset(&tmp, 0, sizeof(tmp));
     /* Build the map filename */
     home = getenv("HOME");
     if(!home) {