Fix #11586: typo in initfsencoding()

Patch written by Ray Allen.
This commit is contained in:
Victor Stinner 2011-03-20 23:09:03 +01:00
parent 6ae1e7f04e
commit 4ca2809b5c
1 changed files with 1 additions and 1 deletions

View File

@ -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);