Browse Source

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

pull/40/head
Benjamin Peterson 11 years ago
parent
commit
6aa1564e9c
  1. 1
      Modules/_pickle.c

1
Modules/_pickle.c

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

Loading…
Cancel
Save