[Pgp-tools-commit] r103 - trunk/caff

Peter Palfrader weasel at costa.debian.org
Fri Jul 1 14:44:38 UTC 2005


Author: weasel
Date: 2005-07-01 14:44:38 +0000 (Fri, 01 Jul 2005)
New Revision: 103

Modified:
   trunk/caff/pgp-fixkey
Log:
Avoid use of undefined variables

Modified: trunk/caff/pgp-fixkey
===================================================================
--- trunk/caff/pgp-fixkey	2005-06-30 18:46:12 UTC (rev 102)
+++ trunk/caff/pgp-fixkey	2005-07-01 14:44:38 UTC (rev 103)
@@ -262,9 +262,11 @@
 		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;
 			};





More information about the Pgp-tools-commit mailing list