mirror of
https://git.savannah.gnu.org/git/tar.git
synced 2026-08-30 12:46:59 +00:00
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:
committed by
Sergey Poznyakoff
parent
95d7b37a34
commit
69007e652a
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user