aboutsummaryrefslogtreecommitdiff
path: root/libbb/single_argv.c
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2012-03-22 14:11:12 +0000
committerRon Yorston <rmy@pobox.com>2012-03-22 14:11:12 +0000
commit67758035a4fe040c6ac69b39d61bcd6bddd7b827 (patch)
treea4a1db7f54c16d12fabe2626b8f1e235cd694e9e /libbb/single_argv.c
parent811c449748d5bd0505f8510e5582892f94ac0cda (diff)
parentb83c9704128dd106071184e4b00335a3b8486857 (diff)
downloadbusybox-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.c2
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
11char* FAST_FUNC single_argv(char **argv) 11char* 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];