aboutsummaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
authorGlenn L McGrath <bug1@ihug.co.nz>2001-07-11 15:32:52 +0000
committerGlenn L McGrath <bug1@ihug.co.nz>2001-07-11 15:32:52 +0000
commitdaf0b78e1a063fd90524d48aee4895c92a55f473 (patch)
tree7812381bc3d011eb787d7790c24f86eaf21019aa /libbb
parent93febe672a943ed1cb4391fa451c3721e1498335 (diff)
downloadbusybox-daf0b78e1a063fd90524d48aee4895c92a55f473.tar.gz
Reverse part of my previous changes
Diffstat (limited to 'libbb')
-rw-r--r--libbb/unarchive.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libbb/unarchive.c b/libbb/unarchive.c
index a17f7af50..067e78b84 100644
--- a/libbb/unarchive.c
+++ b/libbb/unarchive.c
@@ -538,7 +538,8 @@ char *deb_extract(const char *package_filename, FILE *out_stream,
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);