summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2015-09-27 08:16:03 (GMT)
committerBenjamin Peterson <benjamin@python.org>2015-09-27 08:16:03 (GMT)
commit6aa1564e9cdc89d97ede740d65af4c61968d4725 (patch)
treec5bfe9517e7ec2465117c1610f11d2eba92a67bc /Modules
parentd2134c71a12e8deac9ba6b4f4ffe4d271d49cabe (diff)
downloadcpython-6aa1564e9cdc89d97ede740d65af4c61968d4725.zip
cpython-6aa1564e9cdc89d97ede740d65af4c61968d4725.tar.gz
cpython-6aa1564e9cdc89d97ede740d65af4c61968d4725.tar.bz2
initialize return value to NULL to avoid compiler compliants (closes #25245)
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_pickle.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/_pickle.c b/Modules/_pickle.c
index 68d2a60..c6cb8bc 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,