commit | 6a9a3292f5152cf4c29c6899c123f1fa56eafb77 | [log] [tgz] |
---|---|---|
author | Fred Drake <fdrake@acm.org> | Wed Mar 05 17:31:21 2003 +0000 |
committer | Fred Drake <fdrake@acm.org> | Wed Mar 05 17:31:21 2003 +0000 |
tree | 1b6a6acbf09aa555fe9a0b5c5ecdaea203e864ac | |
parent | f0dfbaf4ef5fd4865d323666e9584ef7e76f9663 [diff] [blame] |
Declare all variables at the start of their scope.
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 @@ 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) {