diff options
author | Fred Drake <fdrake@acm.org> | 2003-03-05 17:31:21 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2003-03-05 17:31:21 (GMT) |
commit | 6a9a3292f5152cf4c29c6899c123f1fa56eafb77 (patch) | |
tree | 1b6a6acbf09aa555fe9a0b5c5ecdaea203e864ac | |
parent | f0dfbaf4ef5fd4865d323666e9584ef7e76f9663 (diff) | |
download | cpython-6a9a3292f5152cf4c29c6899c123f1fa56eafb77.zip cpython-6a9a3292f5152cf4c29c6899c123f1fa56eafb77.tar.gz cpython-6a9a3292f5152cf4c29c6899c123f1fa56eafb77.tar.bz2 |
Declare all variables at the start of their scope.
-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 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) { |