]> granicus.if.org Git - python/commitdiff
version was not initialized properly
authorNeal Norwitz <nnorwitz@gmail.com>
Wed, 16 Nov 2005 05:04:51 +0000 (05:04 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Wed, 16 Nov 2005 05:04:51 +0000 (05:04 +0000)
Python/marshal.c

index 1962f924ff37e524640626965c9b991ef2c5b9b7..ff8247c9f232cc176328d93bb37f94a0ea9deb1c 100644 (file)
@@ -1035,6 +1035,7 @@ marshal_dump(PyObject *self, PyObject *args)
        wf.error = 0;
        wf.depth = 0;
        wf.strings = (version > 0) ? PyDict_New() : 0;
+       wf.version = version;
        w_object(x, &wf);
        Py_XDECREF(wf.strings);
        if (wf.error) {