From 3a7a224f64a387c3e5fbf446a6b1c0d6fb6d3688 Mon Sep 17 00:00:00 2001 From: nicm Date: Mon, 27 Apr 2015 22:42:10 +0000 Subject: [PATCH] Assign to the right variable when comparing clients. --- usr.bin/tmux/cmd-find.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.bin/tmux/cmd-find.c b/usr.bin/tmux/cmd-find.c index 5caa57de297..2f839488090 100644 --- a/usr.bin/tmux/cmd-find.c +++ b/usr.bin/tmux/cmd-find.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-find.c,v 1.1 2015/04/27 16:25:57 nicm Exp $ */ +/* $OpenBSD: cmd-find.c,v 1.2 2015/04/27 22:42:10 nicm Exp $ */ /* * Copyright (c) 2015 Nicholas Marriott @@ -131,7 +131,7 @@ cmd_find_best_client(struct client **clist, u_int csize) } else { TAILQ_FOREACH(c_loop, &clients, entry) { if (cmd_find_client_better(c_loop, c)) - c_loop = c; + c = c_loop; } } return (c); -- 2.20.1