diff --git a/cmd-set-environment.c b/cmd-set-environment.c index 95336269..c7a4fc51 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];