commit | daf0b78e1a063fd90524d48aee4895c92a55f473 | [log] [tgz] |
---|---|---|
author | Glenn L McGrath <bug1@ihug.co.nz> | Wed Jul 11 15:32:52 2001 +0000 |
committer | Glenn L McGrath <bug1@ihug.co.nz> | Wed Jul 11 15:32:52 2001 +0000 |
tree | 7812381bc3d011eb787d7790c24f86eaf21019aa | |
parent | 93febe672a943ed1cb4391fa451c3721e1498335 [diff] |
Reverse part of my previous changes
diff --git a/libbb/unarchive.c b/libbb/unarchive.c index a17f7af..067e78b 100644 --- a/libbb/unarchive.c +++ b/libbb/unarchive.c
@@ -538,7 +538,8 @@ int gunzip_pid; if (filename == NULL) { - file_list = NULL; + file_list = xmalloc(sizeof(char *)); + file_list[0] = NULL; } else { file_list = xmalloc(sizeof(char *) * 3); file_list[0] = xstrdup(filename);