aboutsummaryrefslogtreecommitdiff
path: root/tmux.h
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2013-08-01 23:35:03 +0100
committerNicholas Marriott <nicholas.marriott@gmail.com>2013-08-01 23:35:03 +0100
commit1c271852fc7464ecdff1697a66a8bc0eac44e90d (patch)
tree588653a47daa3d5dd4e26f1689f5cfd49e08cb93 /tmux.h
parent7ea560261c72cd8e8453e7ea0e4f3922a2bdfeb3 (diff)
downloadrtmux-1c271852fc7464ecdff1697a66a8bc0eac44e90d.tar.gz
rtmux-1c271852fc7464ecdff1697a66a8bc0eac44e90d.tar.bz2
rtmux-1c271852fc7464ecdff1697a66a8bc0eac44e90d.zip
Pass flags into cmdq_guard as an argument since sometimes cmdq->cmd can be
NULL. Avoids crash when a command in a command client can't be parsed.
Diffstat (limited to 'tmux.h')
-rw-r--r--tmux.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tmux.h b/tmux.h
index cc1c79e8..1cb5cd8e 100644
--- a/tmux.h
+++ b/tmux.h
@@ -1868,7 +1868,7 @@ int cmdq_free(struct cmd_q *);
void printflike2 cmdq_print(struct cmd_q *, const char *, ...);
void printflike2 cmdq_info(struct cmd_q *, const char *, ...);
void printflike2 cmdq_error(struct cmd_q *, const char *, ...);
-int cmdq_guard(struct cmd_q *, const char *);
+int cmdq_guard(struct cmd_q *, const char *, int);
void cmdq_run(struct cmd_q *, struct cmd_list *);
void cmdq_append(struct cmd_q *, struct cmd_list *);
int cmdq_continue(struct cmd_q *);