diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2016-12-09 16:06:43 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2016-12-09 16:06:43 (GMT) |
commit | b110dad9ab296dbc18ea4c5737add1dc978237ca (patch) | |
tree | e1b5c028ddf07a8c5162b795879ef57d43259826 /Modules/_pickle.c | |
parent | 5abaa2b139fb75a76933fb5437e09021fd080fae (diff) | |
download | cpython-b110dad9ab296dbc18ea4c5737add1dc978237ca.zip cpython-b110dad9ab296dbc18ea4c5737add1dc978237ca.tar.gz cpython-b110dad9ab296dbc18ea4c5737add1dc978237ca.tar.bz2 |
Initialize variables to fix compiler warnings
Warnings seen on the "AMD64 Debian PGO 3.x" buildbot. Warnings are false
positive, but variable initialization should not harm performances.
Diffstat (limited to 'Modules/_pickle.c')
-rw-r--r-- | Modules/_pickle.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/_pickle.c b/Modules/_pickle.c index 46ea276..947069a 100644 --- a/Modules/_pickle.c +++ b/Modules/_pickle.c @@ -4762,7 +4762,7 @@ static int load_long(UnpicklerObject *self) { PyObject *value; - char *s; + char *s = NULL; Py_ssize_t len; if ((len = _Unpickler_Readline(self, &s)) < 0) @@ -4993,7 +4993,7 @@ load_unicode(UnpicklerObject *self) { PyObject *str; Py_ssize_t len; - char *s; + char *s = NULL; if ((len = _Unpickler_Readline(self, &s)) < 0) return -1; @@ -5732,7 +5732,7 @@ load_put(UnpicklerObject *self) PyObject *key, *value; Py_ssize_t idx; Py_ssize_t len; - char *s; + char *s = NULL; if ((len = _Unpickler_Readline(self, &s)) < 0) return -1; |