Fix infloop in GC mark_kboards

Do not merge to master, as I have a more systematic fix there.
* src/keyboard.c (mark_kboards): Fix infloop (Bug#33547).
This commit is contained in:
Paul Eggert 2018-12-01 13:40:13 -08:00
parent 317b354782
commit af914fc26d

View file

@ -12011,7 +12011,12 @@ mark_kboards (void)
for (event = kbd_fetch_ptr; event != kbd_store_ptr; event++)
{
if (event == kbd_buffer + KBD_BUFFER_SIZE)
event = kbd_buffer;
{
event = kbd_buffer;
if (event == kbd_store_ptr)
break;
}
/* These two special event types has no Lisp_Objects to mark. */
if (event->kind != SELECTION_REQUEST_EVENT
&& event->kind != SELECTION_CLEAR_EVENT)