We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ec427b commit 64ffee7Copy full SHA for 64ffee7
Modules/termios.c
@@ -120,11 +120,11 @@ termios_tcgetattr(PyObject *self, PyObject *args)
120
PyList_SetItem(v, 3, PyInt_FromLong((long)mode.c_lflag));
121
PyList_SetItem(v, 4, PyInt_FromLong((long)ispeed));
122
PyList_SetItem(v, 5, PyInt_FromLong((long)ospeed));
123
- PyList_SetItem(v, 6, cc);
124
- if (PyErr_Occurred()){
+ if (PyErr_Occurred()) {
125
Py_DECREF(v);
126
goto err;
127
}
+ PyList_SetItem(v, 6, cc);
128
return v;
129
err:
130
Py_DECREF(cc);
0 commit comments