From: nicm Date: Mon, 27 Apr 2015 22:42:10 +0000 (+0000) Subject: Assign to the right variable when comparing clients. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=3a7a224f64a387c3e5fbf446a6b1c0d6fb6d3688;p=openbsd Assign to the right variable when comparing clients. --- 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);