diff options
author | Jasper Lievisse Adriaanse <jasper@cvs.openbsd.org> | 2012-07-07 16:48:54 +0000 |
---|---|---|
committer | Jasper Lievisse Adriaanse <jasper@cvs.openbsd.org> | 2012-07-07 16:48:54 +0000 |
commit | f15b297836c1bef5a18cc3113654dd7375b2dc9b (patch) | |
tree | e28ab1515ee3684af9438913435459ef29d55132 /usr.bin | |
parent | e18cea538037809164fe4ec3835bdfe8f8d6b932 (diff) |
re-add correctly handling no arguments
ok espie@
cvs: ----------------------------------------------------------------------
Diffstat (limited to 'usr.bin')
-rwxr-xr-x | usr.bin/libtool/libtool | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/libtool/libtool b/usr.bin/libtool/libtool index d23aefbf27c..8441e7c8ef1 100755 --- a/usr.bin/libtool/libtool +++ b/usr.bin/libtool/libtool @@ -1,5 +1,5 @@ #!/usr/bin/perl -# $OpenBSD: libtool,v 1.14 2012/07/06 19:18:49 espie Exp $ +# $OpenBSD: libtool,v 1.15 2012/07/07 16:48:53 jasper Exp $ # Copyright (c) 2007-2010 Steven Mestdagh <steven@openbsd.org> # Copyright (c) 2012 Marc Espie <espie@openbsd.org> @@ -92,6 +92,7 @@ sub getoptions sub is_abreviated_mode { my ($self, $arg) = @_; + return undef if !$arg; for my $m (@valid_modes) { next if length $arg > length $m; if ($arg eq substr($m, 0, length $arg)) { |