From: Ian Jackson Date: Sun, 16 Aug 2015 12:04:03 +0000 (+0100) Subject: In option parser test `@ARGV' not `length @ARGV'. Closes:#795710. X-Git-Tag: debian/1.3~8 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit.git;a=commitdiff_plain;h=ab500fe2332b6ad9af0baedd50440331c0b83492 In option parser test `@ARGV' not `length @ARGV'. Closes:#795710. --- diff --git a/debian/changelog b/debian/changelog index 7a434469..577b81a0 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,6 +1,6 @@ dgit (1.3) unstable; urgency=low - * + * In option parser test `@ARGV' not `length @ARGV'. Closes:#795710. -- diff --git a/dgit b/dgit index eb9a97c3..62cd0499 100755 --- a/dgit +++ b/dgit @@ -3161,7 +3161,7 @@ sub parseopts () { my ($what) = @_; @rvalopts = ($_); if (!defined $val) { - badusage "$what needs a value" unless length @ARGV; + badusage "$what needs a value" unless @ARGV; $val = shift @ARGV; push @rvalopts, $val; }