From ab500fe2332b6ad9af0baedd50440331c0b83492 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 16 Aug 2015 13:04:03 +0100 Subject: [PATCH] In option parser test `@ARGV' not `length @ARGV'. Closes:#795710. --- debian/changelog | 2 +- dgit | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.30.2