summaryrefslogtreecommitdiff
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2003-03-05 17:31:21 +0000
committerFred Drake <fdrake@acm.org>2003-03-05 17:31:21 +0000
commit9d67972871d7d634e828df994b5916490af2d23e (patch)
treee7f44de59b95d5338ce4b54f1a3fbc185a0e57c7 /Python/pythonrun.c
parente7179c0529dcc60af8ff2c5cba4161b83473e3ed (diff)
downloadcpython-9d67972871d7d634e828df994b5916490af2d23e.tar.gz
Declare all variables at the start of their scope.
Diffstat (limited to 'Python/pythonrun.c')
-rw-r--r--Python/pythonrun.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c
index 62dfd9306d..b82d77e0b9 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) {