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:
Nicholas Marriott
2013-08-01 23:35:03 +01:00
parent 7ea560261c
commit 1c271852fc
3 changed files with 11 additions and 11 deletions

2
tmux.h
View File

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