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:
parent
e200af5dd2
commit
9d1c06e31e
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user