diff options
author | mikeh <mikeh@FreeBSD.org> | 2003-02-20 20:13:07 +0000 |
---|---|---|
committer | mikeh <mikeh@FreeBSD.org> | 2003-02-20 20:13:07 +0000 |
commit | 0c3902beda60cb496817510ce26309abafe1549e (patch) | |
tree | 114e48b4c246ef286d4d1065475e9d17e4988a00 /usr.sbin | |
parent | 93c9b5f5d15135bbb2fbe83962364b1b8d98dd7b (diff) | |
download | FreeBSD-src-0c3902beda60cb496817510ce26309abafe1549e.zip FreeBSD-src-0c3902beda60cb496817510ce26309abafe1549e.tar.gz |
Initialize sign to NULL so that we don't attempt to free() it in case
of failure.
MFC after: 1 week
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/pkg_install/sign/sign.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.sbin/pkg_install/sign/sign.c b/usr.sbin/pkg_install/sign/sign.c index 56572d8..412b916 100644 --- a/usr.sbin/pkg_install/sign/sign.c +++ b/usr.sbin/pkg_install/sign/sign.c @@ -104,6 +104,7 @@ sign(filename, type, userid, envp) struct signature *sign; int success; + sign = NULL; switch(type) { case TAG_PGP: success = retrieve_pgp_signature(filename, &sign, userid, envp); |