diff options
author | 2012-07-07 16:48:53 +0000 | |
---|---|---|
committer | 2012-07-07 16:48:53 +0000 | |
commit | 81bc520dbc8e0ef9dbd278dd59c205ab9ae13400 (patch) | |
tree | 56cf49872431cada3ecade879cfd1a5a27e061bd | |
parent | rename prio in struct pf_rule and related structs to set_prio so it is (diff) | |
download | wireguard-openbsd-81bc520dbc8e0ef9dbd278dd59c205ab9ae13400.tar.xz wireguard-openbsd-81bc520dbc8e0ef9dbd278dd59c205ab9ae13400.zip |
re-add correctly handling no arguments
ok espie@
cvs: ----------------------------------------------------------------------
-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)) { |