mirror of
https://github.com/AdaCore/cpython.git
synced 2026-02-12 12:57:15 -08:00
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user