mirror of
https://github.com/python/cpython.git
synced 2024-11-28 20:33:54 +08:00
Only declare variable when it's used.
This commit is contained in:
parent
c00d4b437d
commit
9137391d59
@ -281,7 +281,9 @@ PyLocale_strxfrm(PyObject* self, PyObject* args)
|
||||
wchar_t *s, *buf = NULL;
|
||||
size_t n1, n2;
|
||||
PyObject *result = NULL;
|
||||
#ifndef HAVE_USABLE_WCHAR_T
|
||||
Py_ssize_t i;
|
||||
#endif
|
||||
|
||||
if (!PyArg_ParseTuple(args, "u#:strxfrm", &s0, &n0))
|
||||
return NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user