[or-cvs] r17031: {tor} Use of uninitialized value in regexp compilation at ./reinde (tor/trunk/doc/spec/proposals)

arma at seul.org arma at seul.org
Thu Oct 2 11:28:23 UTC 2008


Author: arma
Date: 2008-10-02 07:28:23 -0400 (Thu, 02 Oct 2008)
New Revision: 17031

Modified:
   tor/trunk/doc/spec/proposals/reindex.pl
Log:
Use of uninitialized value in regexp compilation at ./reindex.pl line 55.


Modified: tor/trunk/doc/spec/proposals/reindex.pl
===================================================================
--- tor/trunk/doc/spec/proposals/reindex.pl	2008-10-02 11:13:34 UTC (rev 17030)
+++ tor/trunk/doc/spec/proposals/reindex.pl	2008-10-02 11:28:23 UTC (rev 17031)
@@ -52,10 +52,10 @@
 	}
     }
     close F;
+    die "Proposal $num has no status line" if (!defined $status);
     die "I've never heard of status $status in proposal $num"
 	unless (grep(/$status/, @KNOWN_STATUSES) == 1);
-    die "Proposal $num has a bad status line" if (!defined $status);
-    die "Proposal $num has a bad title line" if (!defined $title);
+    die "Proposal $num has no title line" if (!defined $title);
     die "Proposal $num has no Filename line" unless (defined $alleged_fname);
     die "Proposal $num says its fname is $alleged_fname, but it's really $f"
 	if ($alleged_fname ne $f);



More information about the tor-commits mailing list