fix an off-by-one

ok nicm@
This commit is contained in:
okan 2012-10-31 19:11:18 +00:00
parent d210d99cce
commit 241a746f32

View File

@ -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];