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 03b7d0b75..bf56f3d78 100644
--- a/shell/shell_common.c
+++ b/shell/shell_common.c
@@ -405,9 +405,7 @@ shell_builtin_ulimit(char **argv)
405 */ 405 */
406 GETOPT_RESET(); 406 GETOPT_RESET();
407 407
408 argc = 1; 408 argc = string_array_len(argv);
409 while (argv[argc])
410 argc++;
411 409
412 opts = 0; 410 opts = 0;
413 while (1) { 411 while (1) {