opkg: fix some initialisation and double free issues in libbb
[oweals/opkg-lede.git] / libbb / unarchive.c
index 24578241ad5e762bad9b3a6d30d7cc57612705f9..5fc5725e06114fa67f54e48b58d3947e0c9b8846 100644 (file)
@@ -715,7 +715,7 @@ char *deb_extract(const char *package_filename, FILE *out_stream,
        char *output_buffer = NULL;
        char *ared_file = NULL;
        char ar_magic[8];
-       int gunzip_pid;
+       int gunzip_pid = 0;
 
        if (filename != NULL) {
                file_list = xmalloc(sizeof(char *) * 2);