summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoragc <agc@pkgsrc.org>2015-02-05 00:58:02 +0000
committeragc <agc@pkgsrc.org>2015-02-05 00:58:02 +0000
commite6d3eda2ac7ec2f66693d7f349737b2a577cdbf7 (patch)
tree9a4c203c7455525efac2b9690eb95836199b512f
parentdf54fd58e0a518a67c2b81470f55120156eec477 (diff)
downloadpkgsrc-e6d3eda2ac7ec2f66693d7f349737b2a577cdbf7.tar.gz
appease compiler warning police - initialise a variable in case it's otherwise
"used uninitialised". ride previous version bump.
-rw-r--r--security/netpgpverify/files/libverify.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/security/netpgpverify/files/libverify.c b/security/netpgpverify/files/libverify.c
index a50802386eb..55bf7882f15 100644
--- a/security/netpgpverify/files/libverify.c
+++ b/security/netpgpverify/files/libverify.c
@@ -2723,6 +2723,7 @@ pgpv_verify(pgpv_cursor_t *cursor, pgpv_t *pgp, const void *p, ssize_t size)
if (cursor->pgp->ssh) {
fixup_ssh_keyid(cursor->pgp, signature, "sha1");
}
+ sub = 0;
if ((j = find_keyid(cursor->pgp, NULL, onepass->keyid, &sub)) < 0) {
fmt_binary(strkeyid, sizeof(strkeyid), onepass->keyid, (unsigned)sizeof(onepass->keyid));
snprintf(cursor->why, sizeof(cursor->why), "Signature key id %s not found ", strkeyid);