From 73f01c65c82b532ba0f9ce8540b84493c2f25e63 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Wed, 28 Sep 2011 22:28:04 +0200 Subject: PyUnicode_CopyCharacters() initializes overflow --- Objects/unicodeobject.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 68977f4..74fb7ce 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -654,6 +654,7 @@ PyUnicode_CopyCharacters(PyObject *to, Py_ssize_t to_start, int overflow; maxchar = 0; + overflow = 0; for (i=0; i < how_many; i++) { ch = PyUnicode_READ(from_kind, from_data, from_start + i); if (ch > maxchar) { -- cgit v0.12