https://github.com/python/cpython/commit/3d235f5c5c5bce6e0caec44d2ce17f670c2... commit: 3d235f5c5c5bce6e0caec44d2ce17f670c2ca2d7 branch: master author: Hai Shi <shihai1992@gmail.com> committer: GitHub <noreply@github.com> date: 2020-02-17T14:41:15+01:00 summary: bpo-39500: Fix compile warnings in unicodeobject.c (GH-18519) files: M Objects/unicodeobject.c diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 11fa1fb5ff798..4475eca9432db 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -12207,8 +12207,8 @@ PyUnicode_IsIdentifier(PyObject *self) return 0; } - int kind; - void *data; + int kind = 0; + void *data = NULL; wchar_t *wstr; if (ready) { kind = PyUnicode_KIND(self);