aboutsummaryrefslogtreecommitdiff
path: root/cmd-new-window.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmd-new-window.c')
-rw-r--r--cmd-new-window.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd-new-window.c b/cmd-new-window.c
index f24de8e9..e88795c2 100644
--- a/cmd-new-window.c
+++ b/cmd-new-window.c
@@ -38,7 +38,7 @@ const struct cmd_entry cmd_new_window_entry = {
.name = "new-window",
.alias = "neww",
- .args = { "abc:de:F:kn:PSt:", 0, -1 },
+ .args = { "abc:de:F:kn:PSt:", 0, -1, NULL },
.usage = "[-abdkPS] [-c start-directory] [-e environment] [-F format] "
"[-n window-name] " CMD_TARGET_WINDOW_USAGE " [command]",
@@ -110,7 +110,7 @@ cmd_new_window_exec(struct cmd *self, struct cmdq_item *item)
av = args_first_value(args, 'e');
while (av != NULL) {
- environ_put(sc.environ, av->value, 0);
+ environ_put(sc.environ, av->string, 0);
av = args_next_value(av);
}