mirror of
https://github.com/python/cpython.git
synced 2025-07-29 06:05:00 +00:00
Add assertion that we do not blow out newl
This commit is contained in:
parent
e7bb9188f4
commit
c44af337ce
1 changed files with 1 additions and 0 deletions
|
@ -605,6 +605,7 @@ decode_str(const char *str, struct tok_state *tok)
|
|||
for (s = str;; s++) {
|
||||
if (*s == '\0') break;
|
||||
else if (*s == '\n') {
|
||||
assert(lineno < 2);
|
||||
newl[lineno] = s;
|
||||
lineno++;
|
||||
if (lineno == 2) break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue