]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-39500: Fix compile warnings in unicodeobject.c (GH-18519)
authorHai Shi <shihai1992@gmail.com>
Mon, 17 Feb 2020 13:41:15 +0000 (21:41 +0800)
committerGitHub <noreply@github.com>
Mon, 17 Feb 2020 13:41:15 +0000 (14:41 +0100)
Objects/unicodeobject.c

index 11fa1fb5ff798e05b075f99b051b226a63106697..4475eca9432dbb02ef3e4f22d5cc3333c3d54ac7 100644 (file)
@@ -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);