diff options
| author | Hai Shi <shihai1992@gmail.com> | 2020-02-17 21:41:15 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-02-17 14:41:15 +0100 |
| commit | 3d235f5c5c5bce6e0caec44d2ce17f670c2ca2d7 (patch) | |
| tree | 5631751141be6e05fcf5f6d7321511c3e3317a9b | |
| parent | 1b55b65638254aa78b005fbf0b71fb02499f1852 (diff) | |
| download | cpython-git-3d235f5c5c5bce6e0caec44d2ce17f670c2ca2d7.tar.gz | |
bpo-39500: Fix compile warnings in unicodeobject.c (GH-18519)
| -rw-r--r-- | Objects/unicodeobject.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 11fa1fb5ff..4475eca943 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); |
