mirror of
https://github.com/tmux/tmux.git
synced 2025-01-07 08:18:48 +00:00
Do not count client (and crash) if no window.
This commit is contained in:
parent
0c5cbbbf5c
commit
b573dbba90
2
resize.c
2
resize.c
@ -136,7 +136,7 @@ clients_calculate_size(int type, int current, struct client *c,
|
|||||||
* For latest, count the number of clients with this window. We only
|
* For latest, count the number of clients with this window. We only
|
||||||
* care if there is more than one.
|
* care if there is more than one.
|
||||||
*/
|
*/
|
||||||
if (type == WINDOW_SIZE_LATEST)
|
if (type == WINDOW_SIZE_LATEST && w != NULL)
|
||||||
n = clients_with_window(w);
|
n = clients_with_window(w);
|
||||||
|
|
||||||
/* Loop over the clients and work out the size. */
|
/* Loop over the clients and work out the size. */
|
||||||
|
Loading…
Reference in New Issue
Block a user