initialize return value to NULL to avoid compiler compliants (closes #25245)

This commit is contained in:
Benjamin Peterson 2015-09-27 01:16:03 -07:00
parent d2134c71a1
commit 6aa1564e9c
1 changed files with 1 additions and 0 deletions

View File

@ -1182,6 +1182,7 @@ _Unpickler_Read(UnpicklerObject *self, char **s, Py_ssize_t n)
{ {
Py_ssize_t num_read; Py_ssize_t num_read;
*s = NULL;
if (self->next_read_idx > PY_SSIZE_T_MAX - n) { if (self->next_read_idx > PY_SSIZE_T_MAX - n) {
PickleState *st = _Pickle_GetGlobalState(); PickleState *st = _Pickle_GetGlobalState();
PyErr_SetString(st->UnpicklingError, PyErr_SetString(st->UnpicklingError,