Commit d3f8c485 authored by Guido van Rossum's avatar Guido van Rossum

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?).
parent e8906fe1
...@@ -1181,6 +1181,7 @@ marshal_load(PyObject *self, PyObject *f) ...@@ -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);
......
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