[Python-checkins] python/dist/src/Python pythonrun.c,2.180,2.181
fdrake@users.sourceforge.net
fdrake@users.sourceforge.net
Wed, 05 Mar 2003 09:31:26 -0800
Update of /cvsroot/python/python/dist/src/Python
In directory sc8-pr-cvs1:/tmp/cvs-serv22516/Python
Modified Files:
pythonrun.c
Log Message:
Declare all variables at the start of their scope.
Index: pythonrun.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/pythonrun.c,v
retrieving revision 2.180
retrieving revision 2.181
diff -C2 -d -r2.180 -r2.181
*** pythonrun.c 5 Mar 2003 15:13:46 -0000 2.180
--- pythonrun.c 5 Mar 2003 17:31:21 -0000 2.181
***************
*** 196,202 ****
char *saved_locale = setlocale(LC_CTYPE, NULL);
char *codeset;
setlocale(LC_CTYPE, "");
codeset = nl_langinfo(CODESET);
- PyObject *enc = NULL;
if (*codeset) {
enc = PyCodec_Encoder(codeset);
--- 196,202 ----
char *saved_locale = setlocale(LC_CTYPE, NULL);
char *codeset;
+ PyObject *enc = NULL;
setlocale(LC_CTYPE, "");
codeset = nl_langinfo(CODESET);
if (*codeset) {
enc = PyCodec_Encoder(codeset);