diff --git a/Python/marshal.c b/Python/marshal.c index e1a84d0bf71..f55599bdb08 100644 --- a/Python/marshal.c +++ b/Python/marshal.c @@ -465,6 +465,9 @@ PyMarshal_WriteLongToFile(long x, FILE *fp, int version) { WFILE wf; wf.fp = fp; + wf.str = NULL; + wf.ptr = NULL; + wf.end = NULL; wf.error = WFERR_OK; wf.depth = 0; wf.strings = NULL; @@ -477,6 +480,9 @@ PyMarshal_WriteObjectToFile(PyObject *x, FILE *fp, int version) { WFILE wf; wf.fp = fp; + wf.str = NULL; + wf.ptr = NULL; + wf.end = NULL; wf.error = WFERR_OK; wf.depth = 0; wf.strings = (version > 0) ? PyDict_New() : NULL;