From f0239a8fe97367ce7ab66d18716c411b424a0e63 Mon Sep 17 00:00:00 2001 From: nicm Date: Tue, 1 Mar 2016 12:06:07 +0000 Subject: Remove some more unused variables, and use RB_FOREACH_SAFE in key_bindings_unref_table. --- cmd-if-shell.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'cmd-if-shell.c') diff --git a/cmd-if-shell.c b/cmd-if-shell.c index 229289cd..3e2a5251 100644 --- a/cmd-if-shell.c +++ b/cmd-if-shell.c @@ -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]); -- cgit