summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/cmd-queue.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2019-04-17 14:37:48 +0000
committernicm <nicm@openbsd.org>2019-04-17 14:37:48 +0000
commitc26c4f79767981d9e7cfd9040b1fbb03d77cf042 (patch)
tree902aef886172968a1fc96b65e65f5c4f8a7d12f6 /usr.bin/tmux/cmd-queue.c
parentretguard-cookie-in-register is slightly unstable on arm64, so surgically (diff)
downloadwireguard-openbsd-c26c4f79767981d9e7cfd9040b1fbb03d77cf042.tar.xz
wireguard-openbsd-c26c4f79767981d9e7cfd9040b1fbb03d77cf042.zip
Break new window and pane creation common code from various commands and
window.c into a separate file spawn.c.
Diffstat (limited to 'usr.bin/tmux/cmd-queue.c')
-rw-r--r--usr.bin/tmux/cmd-queue.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/cmd-queue.c b/usr.bin/tmux/cmd-queue.c
index 84c25b311da..95b78ef3402 100644
--- a/usr.bin/tmux/cmd-queue.c
+++ b/usr.bin/tmux/cmd-queue.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd-queue.c,v 1.61 2019/03/12 11:16:50 nicm Exp $ */
+/* $OpenBSD: cmd-queue.c,v 1.62 2019/04/17 14:37:48 nicm Exp $ */
/*
* Copyright (c) 2013 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -111,7 +111,7 @@ cmdq_remove(struct cmdq_item *item)
if (item->client != NULL)
server_client_unref(item->client);
- if (item->type == CMDQ_COMMAND)
+ if (item->cmdlist != NULL)
cmd_list_free(item->cmdlist);
TAILQ_REMOVE(item->queue, item, entry);