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.
This commit is contained in:
nicm
2013-10-10 11:45:28 +00:00
parent 7c71c3e27d
commit 4c9f41f1ad
3 changed files with 11 additions and 11 deletions

2
tmux.h
View File

@@ -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 *);