]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #19219: retval may be used uninitialized value
authorChristian Heimes <christian@cheimes.de>
Sun, 13 Oct 2013 00:29:06 +0000 (02:29 +0200)
committerChristian Heimes <christian@cheimes.de>
Sun, 13 Oct 2013 00:29:06 +0000 (02:29 +0200)
CID 486239: Uninitialized pointer read (UNINIT)

Python/marshal.c

index 9ca23dbe15eda037d222b9df46a3f11ba1c2624d..2addb2dbfe0ac3725bc3bd8c3564ef3f6aa16a0a 100644 (file)
@@ -841,7 +841,7 @@ r_object(RFILE *p)
     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,