From: Hai Shi Date: Mon, 17 Feb 2020 13:41:15 +0000 (+0800) Subject: bpo-39500: Fix compile warnings in unicodeobject.c (GH-18519) X-Git-Tag: v3.9.0a4~40 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3d235f5c5c5bce6e0caec44d2ce17f670c2ca2d7;p=thirdparty%2FPython%2Fcpython.git bpo-39500: Fix compile warnings in unicodeobject.c (GH-18519) --- diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 11fa1fb5ff79..4475eca9432d 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);