mirror of
https://github.com/tmux/tmux.git
synced 2024-11-16 01:18:52 +00:00
Assign to the right variable when comparing clients.
This commit is contained in:
parent
95195f5258
commit
91f6347485
@ -131,7 +131,7 @@ cmd_find_best_client(struct client **clist, u_int csize)
|
|||||||
} else {
|
} else {
|
||||||
TAILQ_FOREACH(c_loop, &clients, entry) {
|
TAILQ_FOREACH(c_loop, &clients, entry) {
|
||||||
if (cmd_find_client_better(c_loop, c))
|
if (cmd_find_client_better(c_loop, c))
|
||||||
c_loop = c;
|
c = c_loop;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return (c);
|
return (c);
|
||||||
|
Loading…
Reference in New Issue
Block a user