mirror of
https://github.com/python/cpython.git
synced 2025-10-17 20:28:43 +00:00
version was not initialized properly
This commit is contained in:
parent
b61602c968
commit
ef78529e86
1 changed files with 1 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue