Fix crash under ASAN

This commit is contained in:
Kovid Goyal 2026-05-16 15:46:26 +05:30
parent ee4310b189
commit 2e8d57c1b0
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

View file

@ -5761,7 +5761,7 @@ static PyObject*
pause_rendering(Screen *self, PyObject *args) {
int msec = 100;
int pause = 1;
if (!PyArg_ParseTuple(args, "|pi", &msec)) return NULL;
if (!PyArg_ParseTuple(args, "|pi", &pause, &msec)) return NULL;
if (screen_pause_rendering(self, pause, msec)) Py_RETURN_TRUE;
Py_RETURN_FALSE;
}