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

Skip to content

Commit 9c4efe5

Browse files
author
Victor Stinner
committed
Fix #11586: typo in initfsencoding()
Patch written by Ray Allen.
1 parent d402487 commit 9c4efe5

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
@@ -147,7 +147,7 @@ get_codec_name(const char *encoding)
147147
goto error;
148148

149149
name_utf8 = _PyUnicode_AsString(name);
150-
if (name == NULL)
150+
if (name_utf8 == NULL)
151151
goto error;
152152
name_str = strdup(name_utf8);
153153
Py_DECREF(name);

0 commit comments

Comments
 (0)