aboutsummaryrefslogtreecommitdiff
path: root/shell/shell_common.c
diff options
context:
space:
mode:
Diffstat (limited to 'shell/shell_common.c')
-rw-r--r--shell/shell_common.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/shell/shell_common.c b/shell/shell_common.c
index 55617b167..154b860f8 100644
--- a/shell/shell_common.c
+++ b/shell/shell_common.c
@@ -412,9 +412,7 @@ shell_builtin_ulimit(char **argv)
412 */ 412 */
413 GETOPT_RESET(); 413 GETOPT_RESET();
414 414
415 argc = 1; 415 argc = string_array_len(argv);
416 while (argv[argc])
417 argc++;
418 416
419 opts = 0; 417 opts = 0;
420 while (1) { 418 while (1) {