mirror of https://github.com/tmux/tmux.git
Sync OpenBSD patchset 830:
argc will be 1 not 2 with no option value.
This commit is contained in:
parent
ecec113b63
commit
b2b5d88f3f
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: cmd-set-option.c,v 1.105 2011-01-07 14:45:34 tcunha Exp $ */
|
/* $Id: cmd-set-option.c,v 1.106 2011-01-07 14:51:54 tcunha Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||||
|
@ -115,7 +115,7 @@ cmd_set_option_exec(struct cmd *self, struct cmd_ctx *ctx)
|
||||||
ctx->error(ctx, "invalid option");
|
ctx->error(ctx, "invalid option");
|
||||||
return (-1);
|
return (-1);
|
||||||
}
|
}
|
||||||
if (args->argc < 1)
|
if (args->argc < 2)
|
||||||
valstr = NULL;
|
valstr = NULL;
|
||||||
else
|
else
|
||||||
valstr = args->argv[1];
|
valstr = args->argv[1];
|
||||||
|
|
Loading…
Reference in New Issue