You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by da...@apache.org on 2011/07/29 22:00:05 UTC

svn commit: r1152360 - /subversion/trunk/tools/dist/backport.pl

Author: danielsh
Date: Fri Jul 29 20:00:04 2011
New Revision: 1152360

URL: http://svn.apache.org/viewvc?rev=1152360&view=rev
Log:
Fix an infinite loop.

* tools/dist/backport.pl
  (parse_entry): Guard the loop condition.

Tested by: none

Modified:
    subversion/trunk/tools/dist/backport.pl

Modified: subversion/trunk/tools/dist/backport.pl
URL: http://svn.apache.org/viewvc/subversion/trunk/tools/dist/backport.pl?rev=1152360&r1=1152359&r2=1152360&view=diff
==============================================================================
--- subversion/trunk/tools/dist/backport.pl (original)
+++ subversion/trunk/tools/dist/backport.pl Fri Jul 29 20:00:04 2011
@@ -152,10 +152,10 @@ sub parse_entry {
   }
 
   # summary
-  push @logsummary, shift until $_[0] =~ /^\s*\w+:/;
+  push @logsummary, shift until $_[0] =~ /^\s*\w+:/ or not defined $_[0];
 
   # votes
-  unshift @votes, pop until $_[-1] =~ /^\s*Votes:/;
+  unshift @votes, pop until $_[-1] =~ /^\s*Votes:/ or not defined $_[-1];
   pop;
 
   # branch