mirror of
https://github.com/tmate-io/tmate-ssh-server.git
synced 2020-11-18 19:53:51 -08:00
fix an off-by-one
ok nicm@
This commit is contained in:
parent
d210d99cce
commit
241a746f32
@ -57,7 +57,7 @@ cmd_set_environment_exec(struct cmd *self, struct cmd_ctx *ctx)
|
|||||||
return (CMD_RETURN_ERROR);
|
return (CMD_RETURN_ERROR);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (args->argc < 1)
|
if (args->argc < 2)
|
||||||
value = NULL;
|
value = NULL;
|
||||||
else
|
else
|
||||||
value = args->argv[1];
|
value = args->argv[1];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user