contrib/m920x/m920x_parse.pl: silence a warning
authorAntonio Ospite <ospite@studenti.unina.it>
Sat, 29 Dec 2012 21:37:08 +0000 (18:37 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 1 Jan 2013 13:14:03 +0000 (11:14 -0200)
Silence a warning due to the way get_line() is supposed to be called:
  Use of uninitialized value $cmd in split at m920x_parse.pl line 118

Signed-off-by: Antonio Ospite <ospite@studenti.unina.it>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
contrib/m920x/m920x_parse.pl

index a6ca80a..19ff71d 100644 (file)
@@ -190,7 +190,7 @@ my @bytes;
 if ($mode eq "fw") {
        open(OUT, ">", "fw") || die "Can't open fw";
 
-       while(@bytes = get_line()) {
+       while(@bytes = get_line("-1")) {
                if(scalar(@bytes) <= 1) {
                        last;
                }