Fix use of uninitialized memory

* src/names.c (name_add_file): Initialize the ep->v.file.fp pointer
after structure allocation.
This commit is contained in:
Pavel Raiskup
2013-08-15 13:56:04 +03:00
committed by Sergey Poznyakoff
parent 95d7b37a34
commit 69007e652a
+1
View File
@@ -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. */