From 241a746f3219d90ec2fd081fe9e81a681d9e6cbd Mon Sep 17 00:00:00 2001 From: okan Date: Wed, 31 Oct 2012 19:11:18 +0000 Subject: [PATCH] fix an off-by-one ok nicm@ --- cmd-set-environment.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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];