]> git.donarmstrong.com Git - debbugs.git/commitdiff
set current line length to zero in wrap_to_length
authorDon Armstrong <don@donarmstrong.com>
Sun, 10 Aug 2008 19:41:24 +0000 (12:41 -0700)
committerDon Armstrong <don@donarmstrong.com>
Sun, 10 Aug 2008 19:41:24 +0000 (12:41 -0700)
Debbugs/User.pm

index c091031ec1dbebd24e589b276d45cdcfe3338dc3..3b90ec4147c3b095729b84733ea19daa732d6fbd 100644 (file)
@@ -400,7 +400,7 @@ Wraps a line to a specific length by splitting at commas
 
 sub _wrap_to_length {
     my ($content,$line_length) = @_;
-    my $current_line_length;
+    my $current_line_length = 0;
     my $result = "";
     while ($content =~ m/^([^,]*,\s*)(.*)$/ || $content =~ m/^([^,]+)()$/) {
         my $current_word = $1;