summaryrefslogtreecommitdiffstats
path: root/cmd-set-environment.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmd-set-environment.c')
-rw-r--r--cmd-set-environment.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd-set-environment.c b/cmd-set-environment.c
index 83e63b48..864e1d9b 100644
--- a/cmd-set-environment.c
+++ b/cmd-set-environment.c
@@ -61,11 +61,11 @@ cmd_set_environment_exec(struct cmd *self, struct cmd_q *cmdq)
value = args->argv[1];
if (args_has(self->args, 'g'))
- env = &global_environ;
+ env = global_environ;
else {
if ((s = cmd_find_session(cmdq, args_get(args, 't'), 0)) == NULL)
return (CMD_RETURN_ERROR);
- env = &s->environ;
+ env = s->environ;
}
if (args_has(self->args, 'u')) {