diff Python/pythonrun.c @ 28179:04df965d675b legacy-trunk

Declare all variables at the start of their scope.
author Fred Drake <fdrake@acm.org>
date Wed, 05 Mar 2003 17:31:21 +0000
parents 3f90d21debe9
children 850626d47574
line wrap: on
line diff
--- a/Python/pythonrun.c	Wed Mar 05 17:23:48 2003 +0000
+++ b/Python/pythonrun.c	Wed Mar 05 17:31:21 2003 +0000
@@ -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) {