summaryrefslogtreecommitdiff
path: root/dh
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2011-07-16 16:09:31 -0400
committerJoey Hess <joey@kitenet.net>2011-07-16 16:09:31 -0400
commitb07bfa7beac7c86e57e83fd6a09b37b3cf8a367a (patch)
tree03d8b5a64d5ff27fc9e5153b5c99138b346df947 /dh
parentedbe1cf7d625f9cc3db5c266db4845592e588569 (diff)
avoid undef when dh is run w/o a sequence
Diffstat (limited to 'dh')
-rwxr-xr-xdh2
1 files changed, 1 insertions, 1 deletions
diff --git a/dh b/dh
index 130d647e..f77e5944 100755
--- a/dh
+++ b/dh
@@ -335,7 +335,7 @@ my $sequence;
if (! compat(7)) {
# From v8, the sequence is the very first parameter.
$sequence=shift @ARGV_orig;
- if ($sequence=~/^-/) {
+ if (defined $sequence && $sequence=~/^-/) {
error "Unknown sequence $sequence (options should not come before the sequence)";
}
}