aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cmd-set-environment.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd-set-environment.c b/cmd-set-environment.c
index 67f28af5..9cebc951 100644
--- a/cmd-set-environment.c
+++ b/cmd-set-environment.c
@@ -57,7 +57,7 @@ cmd_set_environment_exec(struct cmd *self, struct cmd_ctx *ctx)
return (CMD_RETURN_ERROR);
}
- if (args->argc < 1)
+ if (args->argc < 2)
value = NULL;
else
value = args->argv[1];