mirror of
https://github.com/python/cpython.git
synced 2025-10-17 12:18:23 +00:00
Add a missing "rf.depth = 0;" to marshal_load().
Reported by Joe Smith. This makes the CYGWIN tests pass; it's a miracle it didn't fail on other platforms. Seems like it was accidentally dropped (maybe a merge artifact?).
This commit is contained in:
parent
447d33ead6
commit
7a2653438a
1 changed files with 1 additions and 0 deletions
|
@ -1181,6 +1181,7 @@ marshal_load(PyObject *self, PyObject *f)
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
rf.strings = PyList_New(0);
|
rf.strings = PyList_New(0);
|
||||||
|
rf.depth = 0;
|
||||||
result = read_object(&rf);
|
result = read_object(&rf);
|
||||||
Py_DECREF(rf.strings);
|
Py_DECREF(rf.strings);
|
||||||
Py_DECREF(data);
|
Py_DECREF(data);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue