summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--perl-install/detect_devices.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/detect_devices.pm b/perl-install/detect_devices.pm
index 78f0ff218..ad35871cc 100644
--- a/perl-install/detect_devices.pm
+++ b/perl-install/detect_devices.pm
@@ -283,7 +283,7 @@ sub probeSerialDevices {
open F, "serial_probe 2>/dev/null |";
my %current = (); foreach (<F>) {
chomp;
- $serialprobe{$current{DEVICE}} = { %current } and %current = () if /^\s*$/;
+ $serialprobe{$current{DEVICE}} = { %current } and %current = () if /^\s*$/ && $current{DEVICE};
$current{$1} = $2 if /^([^=]+)=(.*)$/;
}
close F;