summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone/drakbug
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/standalone/drakbug')
-rwxr-xr-xperl-install/standalone/drakbug5
1 files changed, 3 insertions, 2 deletions
diff --git a/perl-install/standalone/drakbug b/perl-install/standalone/drakbug
index 3b9427618..94131c6b9 100755
--- a/perl-install/standalone/drakbug
+++ b/perl-install/standalone/drakbug
@@ -35,8 +35,9 @@ my $version = "0.9.0";
my $prog;
my $incident = 0;
-while (defined($_ = shift @ARGV)) {
- /^--report$/ and do { $prog = shift @ARGV };
+foreach (@ARGV) {
+ next unless defined $_;
+ /^--report$/ and $prog = shift @ARGV;
/^--incident$/ and do { $incident = 1; $prog = shift @ARGV };
}