summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xautogen.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/autogen.sh b/autogen.sh
index 6135d17a8611..a37953cb81b6 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -139,7 +139,7 @@ if (defined $ENV{NOCONFIGURE}) {
} else {
# Save autogen.lastrun only if we did get some arguments on the command-line
if (@ARGV) {
- if ($#cmdline_args > 0) {
+ if (scalar(@cmdline_args) > 0) {
# print "writing args to autogen.lastrun\n";
my $fh;
open ($fh, ">autogen.lastrun") || die "can't open autogen.lastrun: $!";