From 4837e39b0809680231e79007ee4e5836b82a9538 Mon Sep 17 00:00:00 2001 From: Ezio Melotti Date: Sat, 22 Oct 2011 00:24:17 +0300 Subject: [PATCH] #12753: fix compilation on Windows. --- Modules/unicodedata.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Modules/unicodedata.c b/Modules/unicodedata.c index 82a711fd34a..5032d42b6a9 100644 --- a/Modules/unicodedata.c +++ b/Modules/unicodedata.c @@ -953,9 +953,10 @@ _getucname(PyObject *self, Py_UCS4 code, char* buffer, int buflen, if (self && UCD_Check(self)) { /* in 3.2.0 there are no aliases and named sequences */ + const change_record *old; if (IS_ALIAS(code) || IS_NAMED_SEQ(code)) return 0; - const change_record *old = get_old_record(self, code); + old = get_old_record(self, code); if (old->category_changed == 0) { /* unassigned */ return 0;