summaryrefslogtreecommitdiffstats
path: root/cmd-queue.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmd-queue.c')
-rw-r--r--cmd-queue.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd-queue.c b/cmd-queue.c
index 14d6a824..fb2c7fac 100644
--- a/cmd-queue.c
+++ b/cmd-queue.c
@@ -94,6 +94,7 @@ cmdq_insert_after(struct cmdq_item *after, struct cmdq_item *item)
log_debug("%s %s: %s after %s", __func__, cmdq_name(c),
item->name, after->name);
+ after = item;
item = next;
} while (item != NULL);
}