From daf0b78e1a063fd90524d48aee4895c92a55f473 Mon Sep 17 00:00:00 2001 From: Glenn L McGrath Date: Wed, 11 Jul 2001 15:32:52 +0000 Subject: Reverse part of my previous changes --- libbb/unarchive.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libbb/unarchive.c') 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); -- cgit v1.2.3