Commit 9c4efe57 authored by Victor Stinner's avatar Victor Stinner

Fix #11586: typo in initfsencoding()

Patch written by Ray Allen.
parent d4024877
......@@ -147,7 +147,7 @@ get_codec_name(const char *encoding)
goto error;
name_utf8 = _PyUnicode_AsString(name);
if (name == NULL)
if (name_utf8 == NULL)
goto error;
name_str = strdup(name_utf8);
Py_DECREF(name);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment