Remove some more unused variables, and use RB_FOREACH_SAFE in

key_bindings_unref_table.
This commit is contained in:
nicm
2016-03-01 12:06:07 +00:00
parent 2e4503ad4e
commit f0239a8fe9
4 changed files with 3 additions and 6 deletions

View File

@ -73,14 +73,13 @@ cmd_if_shell_exec(struct cmd *self, struct cmd_q *cmdq)
struct format_tree *ft;
const char *cwd;
cwd = wp->cwd;
if (cmdq->client != NULL && cmdq->client->session == NULL)
cwd = cmdq->client->cwd;
else if (s != NULL)
cwd = s->cwd;
else
cwd = NULL;
ft = format_create(cmdq, 0);
format_defaults(ft, NULL, s, wl, wp);
shellcmd = format_expand(ft, args->argv[0]);