Declare all variables at the start of their scope.

This commit is contained in:
Fred Drake 2003-03-05 17:31:21 +00:00
parent f0dfbaf4ef
commit 6a9a3292f5
1 changed files with 1 additions and 1 deletions

View File

@ -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) {