diff options
author | Ron Yorston <rmy@pobox.com> | 2012-03-22 14:11:12 +0000 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2012-03-22 14:11:12 +0000 |
commit | 67758035a4fe040c6ac69b39d61bcd6bddd7b827 (patch) | |
tree | a4a1db7f54c16d12fabe2626b8f1e235cd694e9e /libbb/single_argv.c | |
parent | 811c449748d5bd0505f8510e5582892f94ac0cda (diff) | |
parent | b83c9704128dd106071184e4b00335a3b8486857 (diff) | |
download | busybox-w32-67758035a4fe040c6ac69b39d61bcd6bddd7b827.tar.gz busybox-w32-67758035a4fe040c6ac69b39d61bcd6bddd7b827.tar.bz2 busybox-w32-67758035a4fe040c6ac69b39d61bcd6bddd7b827.zip |
Merge commit 'b83c9704128dd106071184e4b00335a3b8486857' into merge
Diffstat (limited to 'libbb/single_argv.c')
-rw-r--r-- | libbb/single_argv.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libbb/single_argv.c b/libbb/single_argv.c index 85137b40f..64844ddf8 100644 --- a/libbb/single_argv.c +++ b/libbb/single_argv.c | |||
@@ -10,6 +10,8 @@ | |||
10 | 10 | ||
11 | char* FAST_FUNC single_argv(char **argv) | 11 | char* FAST_FUNC single_argv(char **argv) |
12 | { | 12 | { |
13 | if (argv[1] && strcmp(argv[1], "--") == 0) | ||
14 | argv++; | ||
13 | if (!argv[1] || argv[2]) | 15 | if (!argv[1] || argv[2]) |
14 | bb_show_usage(); | 16 | bb_show_usage(); |
15 | return argv[1]; | 17 | return argv[1]; |