Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ef78529

Browse files
committed
version was not initialized properly
1 parent b61602c commit ef78529

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Python/marshal.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1035,6 +1035,7 @@ marshal_dump(PyObject *self, PyObject *args)
10351035
wf.error = 0;
10361036
wf.depth = 0;
10371037
wf.strings = (version > 0) ? PyDict_New() : 0;
1038+
wf.version = version;
10381039
w_object(x, &wf);
10391040
Py_XDECREF(wf.strings);
10401041
if (wf.error) {

0 commit comments

Comments
 (0)