diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2016-02-19 16:45:35 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2016-02-19 16:45:35 +0000 |
commit | a011b67f56448b38e251418f0af67ff12411a0a0 (patch) | |
tree | 8a45444b9370d48efa7d1e6d4d91049a69e45b03 /cmd-if-shell.c | |
parent | c3f93e71785290d717ecf60623b99b30d4941850 (diff) | |
download | rtmux-a011b67f56448b38e251418f0af67ff12411a0a0.tar.gz rtmux-a011b67f56448b38e251418f0af67ff12411a0a0.tar.bz2 rtmux-a011b67f56448b38e251418f0af67ff12411a0a0.zip |
Remove unused variables.
Diffstat (limited to 'cmd-if-shell.c')
-rw-r--r-- | cmd-if-shell.c | 3 |
1 files changed, 1 insertions, 2 deletions
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]); |