Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3572842

Browse files
committed
Issue #19219: retval may be used uninitialized value
CID 486239: Uninitialized pointer read (UNINIT)
1 parent 5703cd5 commit 3572842

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Python/marshal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -841,7 +841,7 @@ r_object(RFILE *p)
841841
long i, n;
842842
int type, code = r_byte(p);
843843
int flag, is_interned = 0;
844-
PyObject *retval;
844+
PyObject *retval = NULL;
845845

846846
if (code == EOF) {
847847
PyErr_SetString(PyExc_EOFError,

0 commit comments

Comments
 (0)