From: Fred Drake Date: Wed, 5 Mar 2003 17:31:21 +0000 (+0000) Subject: Declare all variables at the start of their scope. X-Git-Tag: v2.3c1~1578 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6a9a3292f5152cf4c29c6899c123f1fa56eafb77;p=thirdparty%2FPython%2Fcpython.git Declare all variables at the start of their scope. --- diff --git a/Python/pythonrun.c b/Python/pythonrun.c index 62dfd9306d0a..b82d77e0b956 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c @@ -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) {