From 6a9a3292f5152cf4c29c6899c123f1fa56eafb77 Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Wed, 5 Mar 2003 17:31:21 +0000 Subject: Declare all variables at the start of their scope. --- Python/pythonrun.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- cgit v0.12