diff options
author | Fred Drake <fdrake@acm.org> | 2003-03-05 17:31:21 +0000 |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2003-03-05 17:31:21 +0000 |
commit | 9d67972871d7d634e828df994b5916490af2d23e (patch) | |
tree | e7f44de59b95d5338ce4b54f1a3fbc185a0e57c7 /Python/pythonrun.c | |
parent | e7179c0529dcc60af8ff2c5cba4161b83473e3ed (diff) | |
download | cpython-9d67972871d7d634e828df994b5916490af2d23e.tar.gz |
Declare all variables at the start of their scope.
Diffstat (limited to 'Python/pythonrun.c')
-rw-r--r-- | Python/pythonrun.c | 2 |
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) { |