diff options
author | 2011-01-04 01:58:12 +0000 | |
---|---|---|
committer | 2011-01-04 01:58:12 +0000 | |
commit | 8b73f3537bb9467ce77add8d0c2081a5dea1f143 (patch) | |
tree | 1906ca1645aee15a0627e6fe008c9c48d8640adf /usr.bin/tmux/cmd-set-option.c | |
parent | Multiple man(7) .IP and .TP fixes started during p2k10: (diff) | |
download | wireguard-openbsd-8b73f3537bb9467ce77add8d0c2081a5dea1f143.tar.xz wireguard-openbsd-8b73f3537bb9467ce77add8d0c2081a5dea1f143.zip |
argc will be 1 not 2 with no option value.
Diffstat (limited to 'usr.bin/tmux/cmd-set-option.c')
-rw-r--r-- | usr.bin/tmux/cmd-set-option.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/cmd-set-option.c b/usr.bin/tmux/cmd-set-option.c index 13af83d4d61..3a8c7ef35ac 100644 --- a/usr.bin/tmux/cmd-set-option.c +++ b/usr.bin/tmux/cmd-set-option.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-set-option.c,v 1.44 2011/01/04 00:42:47 nicm Exp $ */ +/* $OpenBSD: cmd-set-option.c,v 1.45 2011/01/04 01:58:12 nicm Exp $ */ /* * 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"); return (-1); } - if (args->argc < 1) + if (args->argc < 2) valstr = NULL; else valstr = args->argv[1]; |