diff Python/marshal.c @ 86278:2a2b339b6b59

Issue #19219: retval may be used uninitialized value CID 486239: Uninitialized pointer read (UNINIT)
author Christian Heimes <christian@cheimes.de>
date Sun, 13 Oct 2013 02:29:06 +0200
parents 0383f08bff4c
children 500b4b62c19a
line wrap: on
line diff
--- a/Python/marshal.c	Sun Oct 13 02:27:22 2013 +0200
+++ b/Python/marshal.c	Sun Oct 13 02:29:06 2013 +0200
@@ -841,7 +841,7 @@
     long i, n;
     int type, code = r_byte(p);
     int flag, is_interned = 0;
-    PyObject *retval;
+    PyObject *retval = NULL;
 
     if (code == EOF) {
         PyErr_SetString(PyExc_EOFError,