Declare all variables at the start of their scope.
This commit is contained in:
parent
f0dfbaf4ef
commit
6a9a3292f5
|
@ -195,9 +195,9 @@ Py_Initialize(void)
|
|||
if (!Py_FileSystemDefaultEncoding) {
|
||||
char *saved_locale = setlocale(LC_CTYPE, NULL);
|
||||
char *codeset;
|
||||
PyObject *enc = NULL;
|
||||
setlocale(LC_CTYPE, "");
|
||||
codeset = nl_langinfo(CODESET);
|
||||
PyObject *enc = NULL;
|
||||
if (*codeset) {
|
||||
enc = PyCodec_Encoder(codeset);
|
||||
if (enc) {
|
||||
|
|
Loading…
Reference in New Issue