Removed duplicate variable reset

lwobj->argc (the counter for number of arguments about to be parsed) was cleared twice before starting the parsing loop.
This commit is contained in:
jnz86 2022-12-29 14:42:49 -07:00 committed by GitHub
parent f4835d712d
commit 2ed49bd514
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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') {