diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2017-01-18 08:43:22 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2017-01-18 08:43:22 +0000 |
commit | bed7448c648c4693f6cd5b87a2a36a713fee30d9 (patch) | |
tree | 4ca1f04121ad91b50da613b04a3b9fbb7dedc10c /usr.bin | |
parent | dfabb8445505aea0b6df6ea613920f7669fc61e7 (diff) |
Do not reset idx, it has just been set.
Diffstat (limited to 'usr.bin')
-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)); |