From 3d235f5c5c5bce6e0caec44d2ce17f670c2ca2d7 Mon Sep 17 00:00:00 2001 From: Hai Shi Date: Mon, 17 Feb 2020 21:41:15 +0800 Subject: bpo-39500: Fix compile warnings in unicodeobject.c (GH-18519) --- Objects/unicodeobject.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 11fa1fb5..4475eca 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); -- cgit v0.12