diff options
author | nicm <nicm> | 2013-10-10 11:45:28 +0000 |
---|---|---|
committer | nicm <nicm> | 2013-10-10 11:45:28 +0000 |
commit | 4c9f41f1adbdf2e9c5fa2def959ac13ea4a9785c (patch) | |
tree | 28c38884942445039ab9f214554d8f3e386f9e94 /tmux.h | |
parent | 7c71c3e27de71e8a91590a4e2ed1945873cfc538 (diff) | |
download | rtmux-4c9f41f1adbdf2e9c5fa2def959ac13ea4a9785c.tar.gz rtmux-4c9f41f1adbdf2e9c5fa2def959ac13ea4a9785c.tar.bz2 rtmux-4c9f41f1adbdf2e9c5fa2def959ac13ea4a9785c.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.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1871,7 +1871,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 *); |