Skip to content

Commit 9137391

Browse files
committed
Only declare variable when it's used.
1 parent c00d4b4 commit 9137391

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Modules/_localemodule.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,9 @@ PyLocale_strxfrm(PyObject* self, PyObject* args)
281281
wchar_t *s, *buf = NULL;
282282
size_t n1, n2;
283283
PyObject *result = NULL;
284+
#ifndef HAVE_USABLE_WCHAR_T
284285
Py_ssize_t i;
286+
#endif
285287

286288
if (!PyArg_ParseTuple(args, "u#:strxfrm", &s0, &n0))
287289
return NULL;

0 commit comments

Comments
 (0)