Kaydet (Commit) f5e8e8fc authored tarafından Benjamin Peterson's avatar Benjamin Peterson

merge 3.5 (#24022)

......@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment