From: Roger Dingledine Date: Thu, 2 Oct 2008 11:28:23 +0000 (+0000) Subject: Use of uninitialized value in regexp compilation at ./reindex.pl line 55. X-Git-Tag: tor-0.2.1.7-alpha~66 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a31d0f9f15441cad6d52f6e6abadd87b483f0676;p=thirdparty%2Ftor.git Use of uninitialized value in regexp compilation at ./reindex.pl line 55. svn:r17031 --- diff --git a/doc/spec/proposals/reindex.pl b/doc/spec/proposals/reindex.pl index f76dbfb137..2727351628 100755 --- a/doc/spec/proposals/reindex.pl +++ b/doc/spec/proposals/reindex.pl @@ -52,10 +52,10 @@ for my $f (@files) { } } 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);