From 69007e652ab13164c842ebdfc9611be11696755e Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Thu, 15 Aug 2013 13:56:04 +0300 Subject: [PATCH] Fix use of uninitialized memory * src/names.c (name_add_file): Initialize the ep->v.file.fp pointer after structure allocation. --- src/names.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/names.c b/src/names.c index f3a35364..6c9c3e92 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. */ -- 2.39.5