From: Christos Zoulas Date: Wed, 8 Oct 2003 17:18:28 +0000 (+0000) Subject: Init a variable that would be unitialized on error. X-Git-Tag: FILE4_05 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b322121cfd4dec1dee5cabccde65da33b57d2a50;p=file Init a variable that would be unitialized on error. --- 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;