mirror of
https://github.com/python/cpython.git
synced 2024-11-28 12:31:14 +08: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
@ -1181,6 +1181,7 @@ marshal_load(PyObject *self, PyObject *f)
|
||||
return NULL;
|
||||
}
|
||||
rf.strings = PyList_New(0);
|
||||
rf.depth = 0;
|
||||
result = read_object(&rf);
|
||||
Py_DECREF(rf.strings);
|
||||
Py_DECREF(data);
|
||||
|
Loading…
Reference in New Issue
Block a user