Don't remove group items for group 0 (no group).

This commit is contained in:
nicm 2019-05-23 13:08:43 +00:00 committed by Thomas Adam
parent d0c462f718
commit 7d702f3cef

View File

@ -181,6 +181,8 @@ cmdq_remove_group(struct cmdq_item *item)
{ {
struct cmdq_item *this, *next; struct cmdq_item *this, *next;
if (item->group == 0)
return;
this = TAILQ_NEXT(item, entry); this = TAILQ_NEXT(item, entry);
while (this != NULL) { while (this != NULL) {
next = TAILQ_NEXT(this, entry); next = TAILQ_NEXT(this, entry);