summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristos Zoulas <christos@zoulas.com>2003-10-08 17:18:28 +0000
committerChristos Zoulas <christos@zoulas.com>2003-10-08 17:18:28 +0000
commitb322121cfd4dec1dee5cabccde65da33b57d2a50 (patch)
treee983dcd1e91c3a06bded3ff5f837f22a6376b7a5
parent3e65ffce991bfdefcb65ae16cf981a16aa2904d7 (diff)
downloadfile-git-FILE4_05.tar.gz
Init a variable that would be unitialized on error.FILE4_05
-rw-r--r--src/apprentice.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/apprentice.c b/src/apprentice.c
index 66e7ce48..351c9303 100644
--- a/src/apprentice.c
+++ b/src/apprentice.c
@@ -50,7 +50,7 @@
#endif
#ifndef lint
-FILE_RCSID("@(#)$Id: apprentice.c,v 1.66 2003/10/08 16:47:31 christos Exp $")
+FILE_RCSID("@(#)$Id: apprentice.c,v 1.67 2003/10/08 17:18:28 christos Exp $")
#endif /* lint */
#define EATAB {while (isascii((unsigned char) *l) && \
@@ -958,7 +958,7 @@ apprentice_map(struct magic_set *ms, struct magic **magicp, uint32_t *nmagicp,
int needsbyteswap;
char buf[MAXPATHLEN];
char *dbname = mkdbname(fn, buf, sizeof(buf));
- void *mm;
+ void *mm = NULL;
if (dbname == NULL)
return -1;