]> git.vpit.fr Git - perl/modules/LaTeX-TikZ.git/commitdiff
Prevent some "uninitialized" warnings when pruning a rule list
authorVincent Pit <vince@profvince.com>
Sun, 15 Aug 2010 16:22:30 +0000 (18:22 +0200)
committerVincent Pit <vince@profvince.com>
Sun, 15 Aug 2010 16:22:54 +0000 (18:22 +0200)
This part of the code is obviously *not* tested.

lib/LaTeX/TikZ/Functor/Rule.pm

index 666fd34b9656c1bfbb5f85ddec06b9ca2850cfc6..0f86be16ff5f2c865c1f964c770ee0daa8cd6fa1 100644 (file)
@@ -158,7 +158,7 @@ sub insert {
    }
   }
 
-  my $shift;
+  my $shift = 0;
   for (@remove) {
    splice @$list, $_ - $shift, 1;
    ++$shift;