If only one of -x or -y is given, use the calculated size for the

other. Also fix some warnings. Pointed out by Ben Boeckel.
This commit is contained in:
Nicholas Marriott
2019-06-05 06:44:08 +01:00
parent 17bc11bd15
commit e252984993
4 changed files with 9 additions and 5 deletions

View File

@@ -202,7 +202,7 @@ cmdq_get_command(struct cmd_list *cmdlist, struct cmd_find_state *current,
{
struct cmdq_item *item, *first = NULL, *last = NULL;
struct cmd *cmd;
struct cmdq_shared *shared;
struct cmdq_shared *shared = NULL;
u_int group = 0;
TAILQ_FOREACH(cmd, &cmdlist->list, qentry) {