From: Guido van Rossum Date: Mon, 30 Jul 2007 00:04:35 +0000 (+0000) Subject: Add a missing "rf.depth = 0;" to marshal_load(). X-Git-Tag: v3.0a1~560 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7a2653438ad584d829ac058d5b924c187cc71408;p=python 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?). --- diff --git a/Python/marshal.c b/Python/marshal.c index 0b275f065b..975ec8d3b4 100644 --- a/Python/marshal.c +++ b/Python/marshal.c @@ -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);