diff options
author | Guido van Rossum <guido@python.org> | 2007-07-30 00:04:35 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-07-30 00:04:35 (GMT) |
commit | 7a2653438ad584d829ac058d5b924c187cc71408 (patch) | |
tree | 6a1077efc6421a2d2b08d60e8c43427c39ac9edd | |
parent | 447d33ead62b6dcd46d475a703f59940eb85428b (diff) | |
download | cpython-7a2653438ad584d829ac058d5b924c187cc71408.zip cpython-7a2653438ad584d829ac058d5b924c187cc71408.tar.gz cpython-7a2653438ad584d829ac058d5b924c187cc71408.tar.bz2 |
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?).
-rw-r--r-- | Python/marshal.c | 1 |
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); |