mirror of
https://github.com/MaJerle/lwshell.git
synced 2025-02-06 13:08:22 +08:00
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:
parent
f4835d712d
commit
2ed49bd514
@ -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') {
|
||||
|
Loading…
x
Reference in New Issue
Block a user