]> granicus.if.org Git - python/commitdiff
Add a missing "rf.depth = 0;" to marshal_load().
authorGuido van Rossum <guido@python.org>
Mon, 30 Jul 2007 00:04:35 +0000 (00:04 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 30 Jul 2007 00:04:35 +0000 (00:04 +0000)
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?).

Python/marshal.c

index 0b275f065ba9e66e5fb6f498bbc52e51ef8888c7..975ec8d3b439596a27b439144cb53ae39d45113a 100644 (file)
@@ -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);