summaryrefslogtreecommitdiffstats
path: root/cmd-queue.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmd-queue.c')
-rw-r--r--cmd-queue.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmd-queue.c b/cmd-queue.c
index c0fc26c6..5bc3226a 100644
--- a/cmd-queue.c
+++ b/cmd-queue.c
@@ -44,6 +44,9 @@ cmdq_new(struct client *c)
cmdq->item = NULL;
cmdq->cmd = NULL;
+ cmd_find_clear_state(&cmdq->current, NULL, 0);
+ cmdq->parent = NULL;
+
return (cmdq);
}
@@ -286,3 +289,4 @@ cmdq_flush(struct cmd_q *cmdq)
}
cmdq->item = NULL;
}
+