merge 3.5 (#24022)
This commit is contained in:
commit
f5e8e8fc2b
|
@ -1025,7 +1025,7 @@ tok_nextc(struct tok_state *tok)
|
|||
else {
|
||||
tok->done = E_OK;
|
||||
tok->inp = strchr(tok->buf, '\0');
|
||||
done = tok->inp[-1] == '\n';
|
||||
done = tok->inp == tok->buf || tok->inp[-1] == '\n';
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Reference in New Issue