From: Benjamin Peterson Date: Sun, 27 Sep 2015 08:16:03 +0000 (-0700) Subject: initialize return value to NULL to avoid compiler compliants (closes #25245) X-Git-Tag: v3.5.1rc1~266^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6aa1564e9cdc89d97ede740d65af4c61968d4725;p=python initialize return value to NULL to avoid compiler compliants (closes #25245) --- diff --git a/Modules/_pickle.c b/Modules/_pickle.c index 68d2a60774..c6cb8bc7c0 100644 --- a/Modules/_pickle.c +++ b/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,