bpo-25359: Add missed "goto error" after setting an exception. (#3712)

This commit is contained in:
Serhiy Storchaka 2017-09-24 02:49:58 +03:00 committed by GitHub
parent cd99e79dc7
commit d6238a76c6
1 changed files with 1 additions and 0 deletions

View File

@ -941,6 +941,7 @@ _io_TextIOWrapper___init___impl(textio *self, PyObject *buffer,
else {
PyErr_SetString(PyExc_OSError,
"could not determine default encoding");
goto error;
}
/* Check we have been asked for a real text encoding */