diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2011-01-04 01:58:12 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2011-01-04 01:58:12 +0000 |
commit | 55346b0d103016e8ee633e08e41b8b977b5904ef (patch) | |
tree | 596ed5a1445184cdf7676f741dbf898767927bcb /cmd-set-option.c | |
parent | 7502cb3adbb26a2f94445a35626e64041d6769f9 (diff) | |
download | rtmux-55346b0d103016e8ee633e08e41b8b977b5904ef.tar.gz rtmux-55346b0d103016e8ee633e08e41b8b977b5904ef.tar.bz2 rtmux-55346b0d103016e8ee633e08e41b8b977b5904ef.zip |
argc will be 1 not 2 with no option value.
Diffstat (limited to 'cmd-set-option.c')
-rw-r--r-- | cmd-set-option.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd-set-option.c b/cmd-set-option.c index 2aa99f10..efd5797a 100644 --- a/cmd-set-option.c +++ b/cmd-set-option.c @@ -115,7 +115,7 @@ cmd_set_option_exec(struct cmd *self, struct cmd_ctx *ctx) ctx->error(ctx, "invalid option"); return (-1); } - if (args->argc < 1) + if (args->argc < 2) valstr = NULL; else valstr = args->argv[1]; |