[Python-checkins] cpython (3.4): initialize return value to NULL to avoid compiler compliants (closes #25245)
benjamin.peterson
python-checkins at python.org
Sun Sep 27 10:16:27 CEST 2015
https://hg.python.org/cpython/rev/f0dcf7599517
changeset: 98298:f0dcf7599517
branch: 3.4
parent: 98290:6687630e201a
user: Benjamin Peterson <benjamin at python.org>
date: Sun Sep 27 01:16:03 2015 -0700
summary:
initialize return value to NULL to avoid compiler compliants (closes #25245)
files:
Modules/_pickle.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/Modules/_pickle.c b/Modules/_pickle.c
--- a/Modules/_pickle.c
+++ b/Modules/_pickle.c
@@ -1182,6 +1182,7 @@
{
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,
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list