]> granicus.if.org Git - python/commitdiff
initialize return value to NULL to avoid compiler compliants (closes #25245)
authorBenjamin Peterson <benjamin@python.org>
Sun, 27 Sep 2015 08:16:03 +0000 (01:16 -0700)
committerBenjamin Peterson <benjamin@python.org>
Sun, 27 Sep 2015 08:16:03 +0000 (01:16 -0700)
Modules/_pickle.c

index 68d2a60774bf04e9452caaa2ee563bc9fb015801..c6cb8bc7c0e47f679a9bf4a4f191eb51829022ea 100644 (file)
@@ -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,