Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
my_valgrind.pl: don't stop loop if $arg has value 0.
authorArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Wed, 6 Feb 2013 17:49:43 +0000 (18:49 +0100)
committerArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Wed, 6 Feb 2013 17:49:43 +0000 (18:49 +0100)
buildtools/Cmake/Scripts/my_valgrind.pl

index 089629e..bbd72c5 100755 (executable)
@@ -3,7 +3,7 @@ use strict;
 my @argv = ("valgrind");
 my $count = 0;
 
-while (my $arg = shift) {
+while (defined(my $arg = shift)) {
     print "arg($count)$arg\n";
     if($arg eq "--cd"){
         $arg = shift;