]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Declare all variables at the start of their scope.
authorFred Drake <fdrake@acm.org>
Wed, 5 Mar 2003 17:31:21 +0000 (17:31 +0000)
committerFred Drake <fdrake@acm.org>
Wed, 5 Mar 2003 17:31:21 +0000 (17:31 +0000)
Python/pythonrun.c

index 62dfd9306d0a15f79226af88846cbf53e4a02829..b82d77e0b9560a6ca77431f91630d11c10c35b86 100644 (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) {