diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2015-10-14 10:10:20 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2015-10-14 10:10:20 (GMT) |
commit | 1285e5c80562ac84ca8bc0ea39b100215d1808a1 (patch) | |
tree | 9a7e2a5391ab7007cac23c0a70ac6b6a55085d9d /Objects | |
parent | f6358a7e4c635a74202e73c76a01f5046e1b7c36 (diff) | |
download | cpython-1285e5c80562ac84ca8bc0ea39b100215d1808a1.zip cpython-1285e5c80562ac84ca8bc0ea39b100215d1808a1.tar.gz cpython-1285e5c80562ac84ca8bc0ea39b100215d1808a1.tar.bz2 |
Fix compiler warnings (uninitialized variables), false alarms in fact
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/longobject.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Objects/longobject.c b/Objects/longobject.c index 759116a..2cc1585 100644 --- a/Objects/longobject.c +++ b/Objects/longobject.c @@ -1587,7 +1587,7 @@ long_to_decimal_string_internal(PyObject *aa, char **bytes_str) { PyLongObject *scratch, *a; - PyObject *str; + PyObject *str = NULL; Py_ssize_t size, strlen, size_a, i, j; digit *pout, *pin, rem, tenpow; int negative; @@ -1664,7 +1664,6 @@ long_to_decimal_string_internal(PyObject *aa, return -1; } kind = writer->kind; - str = NULL; } else if (bytes_writer) { *bytes_str = _PyBytesWriter_Prepare(bytes_writer, *bytes_str, strlen); @@ -1777,7 +1776,7 @@ long_format_binary(PyObject *aa, int base, int alternate, _PyBytesWriter *bytes_writer, char **bytes_str) { PyLongObject *a = (PyLongObject *)aa; - PyObject *v; + PyObject *v = NULL; Py_ssize_t sz; Py_ssize_t size_a; enum PyUnicode_Kind kind; @@ -1834,7 +1833,6 @@ long_format_binary(PyObject *aa, int base, int alternate, if (_PyUnicodeWriter_Prepare(writer, sz, 'x') == -1) return -1; kind = writer->kind; - v = NULL; } else if (bytes_writer) { *bytes_str = _PyBytesWriter_Prepare(bytes_writer, *bytes_str, sz); |