From caba88ce99696f7c5846b168e30567210753116d Mon Sep 17 00:00:00 2001 From: weasel Date: Fri, 1 Jul 2005 14:44:38 +0000 Subject: [PATCH] Avoid use of undefined variables git-svn-id: svn://svn.debian.org/pgp-tools/trunk@103 b513b33f-fedd-0310-b452-c3deb5f4c849 --- caff/pgp-fixkey | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/caff/pgp-fixkey b/caff/pgp-fixkey index c4e7c9f..6064bab 100755 --- a/caff/pgp-fixkey +++ b/caff/pgp-fixkey @@ -262,9 +262,11 @@ if (scalar @KEYIDS == 0) { if ($type eq 'pub') { $thiskey = $keyid; debug("Found key $thiskey"); + } elsif (!defined $thiskey) { + next; } elsif ($type eq 'sig' || $type eq 'rev') { if (($keyid eq '0' x 16) || ($created == 0)) { - push @KEYIDS, $thiskey if defined $thiskey; + push @KEYIDS, $thiskey; info("Adding $thiskey"); $thiskey = undef; }; -- 2.30.2