diff options
author | Michael Schroeder <mls@suse.de> | 2013-08-23 18:06:04 +0200 |
---|---|---|
committer | Michael Schroeder <mls@suse.de> | 2013-08-23 18:06:04 +0200 |
commit | 8c5a5fc0bee0487a6f14c3e3aae539c3b0578a16 (patch) | |
tree | f3dda5145225be9722195ab141c2b904f9702f57 /ext | |
parent | ab12cf5851e4014d387f810ef1b0edf4138cbd63 (diff) | |
download | libsolv-8c5a5fc0bee0487a6f14c3e3aae539c3b0578a16.tar.gz libsolv-8c5a5fc0bee0487a6f14c3e3aae539c3b0578a16.tar.bz2 libsolv-8c5a5fc0bee0487a6f14c3e3aae539c3b0578a16.zip |
solv_parse_sig: clear return values at the beginning
Diffstat (limited to 'ext')
-rw-r--r-- | ext/repo_pubkey.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/repo_pubkey.c b/ext/repo_pubkey.c index 459ee57..facd17a 100644 --- a/ext/repo_pubkey.c +++ b/ext/repo_pubkey.c @@ -846,6 +846,11 @@ solv_parse_sig(FILE *fp, unsigned char **sigpkgp, int *sigpkglp, char *keyidstr) struct pgpsig pgpsig; Id htype; + if (sigpkgp) + { + *sigpkgp = 0; + *sigpkglp = 0; + } if ((sig = (unsigned char *)solv_slurp(fp, &sigl)) == 0) return 0; if (!is_sig_packet(sig, sigl)) |