From bed7448c648c4693f6cd5b87a2a36a713fee30d9 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Wed, 18 Jan 2017 08:43:22 +0000 Subject: Do not reset idx, it has just been set. --- usr.bin/tmux/options.c | 3 +-- 1 file changed, 1 insertion(+), 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 @@ -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)); -- cgit v1.2.3