Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6a9a329

Browse files
committed
Declare all variables at the start of their scope.
1 parent f0dfbaf commit 6a9a329

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Python/pythonrun.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,9 +195,9 @@ Py_Initialize(void)
195195
if (!Py_FileSystemDefaultEncoding) {
196196
char *saved_locale = setlocale(LC_CTYPE, NULL);
197197
char *codeset;
198+
PyObject *enc = NULL;
198199
setlocale(LC_CTYPE, "");
199200
codeset = nl_langinfo(CODESET);
200-
PyObject *enc = NULL;
201201
if (*codeset) {
202202
enc = PyCodec_Encoder(codeset);
203203
if (enc) {

0 commit comments

Comments
 (0)