Issue #19219: retval may be used uninitialized value

CID 486239: Uninitialized pointer read (UNINIT)
This commit is contained in:
Christian Heimes 2013-10-13 02:29:06 +02:00
parent 5703cd58ca
commit 3572842c19
1 changed files with 1 additions and 1 deletions

View File

@ -841,7 +841,7 @@ r_object(RFILE *p)
long i, n; long i, n;
int type, code = r_byte(p); int type, code = r_byte(p);
int flag, is_interned = 0; int flag, is_interned = 0;
PyObject *retval; PyObject *retval = NULL;
if (code == EOF) { if (code == EOF) {
PyErr_SetString(PyExc_EOFError, PyErr_SetString(PyExc_EOFError,