From cd2196ed750bbb11c9612068644292e56d9a3d66 Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Mon, 2 Jan 2012 11:40:19 +0100 Subject: [PATCH] junos_dump.pl: Initialize $outfile. --- tools/junos_dump.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/junos_dump.pl b/tools/junos_dump.pl index f6a7b79..5e1794e 100755 --- a/tools/junos_dump.pl +++ b/tools/junos_dump.pl @@ -156,7 +156,7 @@ if ($opt{p}) { } # Get the name of the output file -my $outfile = $opt{o}; +my $outfile = $opt{o} || 'dump.xml'; # Retrieve command line arguments my %deviceinfo = ( @@ -184,7 +184,7 @@ if ($res) { print STDOUT $res->toString; } else { - $res->printToFile($outfile || 'dump.xml'); + $res->printToFile($outfile); } }