Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/microrl.c
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ static int split (microrl_t * pThis, int limit, char const ** tkn_arr)
int ind = 0;
while (1) {
// go to the first whitespace (zerro for us)
while ((pThis->cmdline [ind] == '\0') && (ind < limit)) {
while ((ind < limit) && (pThis->cmdline [ind] == '\0')) {
ind++;
}
if (!(ind < limit)) return i;
Expand All @@ -201,7 +201,7 @@ static int split (microrl_t * pThis, int limit, char const ** tkn_arr)
return -1;
}
// go to the first NOT whitespace (not zerro for us)
while ((pThis->cmdline [ind] != '\0') && (ind < limit)) {
while ((ind < limit) && (pThis->cmdline [ind] != '\0')) {
ind++;
}
if (!(ind < limit)) return i;
Expand Down