]> jspc29.x-matter.uni-frankfurt.de Git - daqtools.git/commitdiff
check lines for correctness in flash_settings writer
authorJan Michel <j.michel@gsi.de>
Mon, 21 Nov 2016 13:45:55 +0000 (14:45 +0100)
committerJan Michel <j.michel@gsi.de>
Mon, 21 Nov 2016 13:51:45 +0000 (14:51 +0100)
tools/flash_settings.pl

index bc8ede0667e17e17bfe0e639fc094dbb0ce80eb5..adcbb44385a60bfeb0714ca564350687404fb1df 100755 (executable)
@@ -101,7 +101,7 @@ if (defined($settings_file) and not($settings_file eq "/dev/null") ) {
   close(FH);
 
   for my $line (@lines) {
-    $line =~ m/(^[xXa-fA-F0-9]+)\s+([xXa-fA-F0-9]+)/;
+    next unless $line =~ m/(^[xXa-fA-F0-9]+)\s+([xXa-fA-F0-9]+)/;
     $sc_data->{eval($1)} = eval($2); # convert hex/binary/decimal strings to numbers
   }