From: Pavel Raiskup Date: Thu, 15 Aug 2013 10:56:04 +0000 (+0300) Subject: Fix use of uninitialized memory X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Ftar;a=commitdiff_plain;h=69007e652ab13164c842ebdfc9611be11696755e Fix use of uninitialized memory * src/names.c (name_add_file): Initialize the ep->v.file.fp pointer after structure allocation. --- diff --git a/src/names.c b/src/names.c index f3a3536..6c9c3e9 100644 --- a/src/names.c +++ b/src/names.c @@ -291,6 +291,7 @@ name_add_file (const char *name, int term) ep->type = NELT_FILE; ep->v.file.name = name; ep->v.file.term = term; + ep->v.file.fp = NULL; } /* Names from external name file. */