diff options
author | 2017-01-18 08:43:21 +0000 | |
---|---|---|
committer | 2017-01-18 08:43:21 +0000 | |
commit | ec6810128bf721a5b315727e70d84ec16df12211 (patch) | |
tree | 1204abc391f21c17f5cfa93fc5de5a6b7a2db88f /usr.bin/tmux/options.c | |
parent | options_match needs to explicitly check for user options. (diff) | |
download | wireguard-openbsd-ec6810128bf721a5b315727e70d84ec16df12211.tar.xz wireguard-openbsd-ec6810128bf721a5b315727e70d84ec16df12211.zip |
Do not reset idx, it has just been set.
Diffstat (limited to 'usr.bin/tmux/options.c')
-rw-r--r-- | usr.bin/tmux/options.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.bin/tmux/options.c b/usr.bin/tmux/options.c index 9abee080e6a..a9c23365a6e 100644 --- a/usr.bin/tmux/options.c +++ b/usr.bin/tmux/options.c @@ -1,4 +1,4 @@ -/* $OpenBSD: options.c,v 1.29 2017/01/18 08:40:50 nicm Exp $ */ +/* $OpenBSD: options.c,v 1.30 2017/01/18 08:43:21 nicm Exp $ */ /* * Copyright (c) 2008 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -403,7 +403,6 @@ options_match(const char *s, int *idx, int* ambiguous) name = options_parse(s, idx); namelen = strlen(name); - *idx = -1; if (*name == '@') { *ambiguous = 0; return (xstrdup(name)); |