summaryrefslogtreecommitdiffstats
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2003-03-05 17:31:21 (GMT)
committerFred Drake <fdrake@acm.org>2003-03-05 17:31:21 (GMT)
commit6a9a3292f5152cf4c29c6899c123f1fa56eafb77 (patch)
tree1b6a6acbf09aa555fe9a0b5c5ecdaea203e864ac /Python/pythonrun.c
parentf0dfbaf4ef5fd4865d323666e9584ef7e76f9663 (diff)
downloadcpython-6a9a3292f5152cf4c29c6899c123f1fa56eafb77.zip
cpython-6a9a3292f5152cf4c29c6899c123f1fa56eafb77.tar.gz
cpython-6a9a3292f5152cf4c29c6899c123f1fa56eafb77.tar.bz2
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 62dfd93..b82d77e 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) {