summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2012-01-15 17:57:54 +0100
committerJim Meyering <meyering@redhat.com>2012-01-15 18:51:02 +0100
commite2816169d5f33d6624b60f41eef1fce7779b585a (patch)
tree1ba25583d6295a35ac2d633aa271355d89310b4b /lib
parentc3797b86ccbd96c7353254fc0a36611cfdc4379b (diff)
downloadautoconf-e2816169d5f33d6624b60f41eef1fce7779b585a.tar.gz
getopt: refine syntax of previous change
* lib/Autom4te/General.pm (getopt): Use a more concise test.
Diffstat (limited to 'lib')
-rw-r--r--lib/Autom4te/General.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Autom4te/General.pm b/lib/Autom4te/General.pm
index e427aa79..f05042f6 100644
--- a/lib/Autom4te/General.pm
+++ b/lib/Autom4te/General.pm
@@ -265,7 +265,7 @@ sub getopt (%)
# FIXME: Lot of code duplication with automake here. It would probably
# be best to generalize our getopt() func and rip it out in a new module
# from which automake can sync.
- if (defined $ARGV[0] && $ARGV[0] =~ /^-./)
+ if (@ARGV && $ARGV[0] =~ /^-./)
{
my %argopts;
for my $k (keys %option)