summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2015-09-27 08:16:20 (GMT)
committerBenjamin Peterson <benjamin@python.org>2015-09-27 08:16:20 (GMT)
commit2352a2f31d3530661c38f6f3e846d5636b2dfbf2 (patch)
tree198047ceba4b20ed70e84373b10c63b8ce86f476 /Modules
parentc78f27d239d6f82b3dbf6393638dad5d6efcae35 (diff)
parentbdb93c3e638a1b8191d68052b3cea2a0475bc530 (diff)
downloadcpython-2352a2f31d3530661c38f6f3e846d5636b2dfbf2.zip
cpython-2352a2f31d3530661c38f6f3e846d5636b2dfbf2.tar.gz
cpython-2352a2f31d3530661c38f6f3e846d5636b2dfbf2.tar.bz2
merge 3.5 (#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 c3f1896..123f14b 100644
--- a/Modules/_pickle.c
+++ b/Modules/_pickle.c
@@ -1193,6 +1193,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,