]> rtime.felk.cvut.cz Git - novaboot.git/commitdiff
Initialize some variables even if /dev/null is passed as novaboot script
authorMichal Sojka <sojkam1@fel.cvut.cz>
Tue, 22 Jul 2014 07:31:31 +0000 (09:31 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Tue, 22 Jul 2014 07:31:31 +0000 (09:31 +0200)
novaboot

index 0a88f693b055aed3e3a824100f476df81ff58e6d..c3392fbb28c66ea83996251600b145e3a97cb063 100755 (executable)
--- a/novaboot
+++ b/novaboot
@@ -252,7 +252,7 @@ my @scripts;
 my $file;
 my $EOF;
 my $last_fn = '';
-my ($modules, $variables, $generated, $continuation);
+my ($modules, $variables, $generated, $continuation) = ([], {}, []);
 my $skip_reading = defined($on_opt) || defined($off_opt);
 while (!$skip_reading && ($_ = <>)) {
     if ($ARGV ne $last_fn) { # New script