summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Python/marshal.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/marshal.c b/Python/marshal.c
index 0b275f0..975ec8d 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);