diff --git a/lib/package_unpack.c b/lib/package_unpack.c index ecebc694..e995d40c 100644 --- a/lib/package_unpack.c +++ b/lib/package_unpack.c @@ -84,7 +84,7 @@ unpack_archive(struct xbps_handle *xhp, size_t instbufsiz = 0, rembufsiz = 0; ssize_t entry_size; const char *entry_pname, *transact, *binpkg_pkgver; - char *pkgname, *buf; + char *pkgname, *buf = NULL; int ar_rv, rv, error, entry_type, flags; bool preserve, update, file_exists, keep_conf_file; bool skip_extract, force, xucd_stats;