Mercurial > libdvdnav.hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
374:9ab286814761 | 375:5820649e5aa2 |
---|---|
198 int res; | 198 int res; |
199 FILE *fp; | 199 FILE *fp; |
200 block_t tmp; | 200 block_t tmp; |
201 remap_t *map; | 201 remap_t *map; |
202 | 202 |
203 memset(&tmp, 0, sizeof(tmp)); | |
203 /* Build the map filename */ | 204 /* Build the map filename */ |
204 home = getenv("HOME"); | 205 home = getenv("HOME"); |
205 if(!home) { | 206 if(!home) { |
206 fprintf(MSG_OUT, "libdvdnav: Unable to find home directory" ); | 207 fprintf(MSG_OUT, "libdvdnav: Unable to find home directory" ); |
207 return NULL; | 208 return NULL; |