changeset 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 9ab286814761
children 430d842f35bd
files remap.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
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) {