Declare all variables at the start of their scope.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user