pkgfs_init: Initialize pkg

new_package may not set *pp if it errors out, leaving pkg uninitialized.

Reported by:	GCC
This commit is contained in:
kevans 2018-08-15 21:13:10 +00:00
parent e200af5dd2
commit 9d1c06e31e

View File

@ -163,6 +163,7 @@ pkgfs_init(const char *pkgname, struct fs_ops *proto)
struct package *pkg;
int error, fd;
pkg = NULL;
if (proto != &pkgfs_fsops)
pkgfs_cleanup();