summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorMichael Schroeder <mls@suse.de>2013-08-23 18:06:04 +0200
committerMichael Schroeder <mls@suse.de>2013-08-23 18:06:04 +0200
commit8c5a5fc0bee0487a6f14c3e3aae539c3b0578a16 (patch)
treef3dda5145225be9722195ab141c2b904f9702f57 /ext
parentab12cf5851e4014d387f810ef1b0edf4138cbd63 (diff)
downloadlibsolv-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.c5
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))