From 2ed49bd51409f1131389779e514f14be0e9b8159 Mon Sep 17 00:00:00 2001 From: jnz86 Date: Thu, 29 Dec 2022 14:42:49 -0700 Subject: [PATCH] Removed duplicate variable reset lwobj->argc (the counter for number of arguments about to be parsed) was cleared twice before starting the parsing loop. --- lwshell/src/lwshell/lwshell.c | 1 - 1 file changed, 1 deletion(-) diff --git a/lwshell/src/lwshell/lwshell.c b/lwshell/src/lwshell/lwshell.c index eef4f29..e9414a9 100644 --- a/lwshell/src/lwshell/lwshell.c +++ b/lwshell/src/lwshell/lwshell.c @@ -109,7 +109,6 @@ prv_parse_input(lwshell_t* lwobj) { str = lwobj->buff; /* Process complete string */ - lwobj->argc = 0; while (*str != '\0') { while (*str == ' ' && ++str) {} /* Remove leading spaces */ if (*str == '\0') {