[2/2] contrib/m920x/m920x_parse.pl: silence a warning

Message ID 1356820628-24992-3-git-send-email-ospite@studenti.unina.it (mailing list archive)
State Accepted, archived
Headers

Commit Message

Antonio Ospite Dec. 29, 2012, 10:37 p.m. UTC
  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>
---
 contrib/m920x/m920x_parse.pl |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Patch

diff --git a/contrib/m920x/m920x_parse.pl b/contrib/m920x/m920x_parse.pl
index a6ca80a..19ff71d 100755
--- a/contrib/m920x/m920x_parse.pl
+++ b/contrib/m920x/m920x_parse.pl
@@ -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;
 		}