=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/resize.c,v retrieving revision 1.43 retrieving revision 1.44 diff -u -r1.43 -r1.44 --- src/usr.bin/tmux/resize.c 2021/06/10 07:24:45 1.43 +++ src/usr.bin/tmux/resize.c 2021/06/10 07:29:45 1.44 @@ -1,4 +1,4 @@ -/* $OpenBSD: resize.c,v 1.43 2021/06/10 07:24:45 nicm Exp $ */ +/* $OpenBSD: resize.c,v 1.44 2021/06/10 07:29:45 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -136,7 +136,7 @@ * For latest, count the number of clients with this window. We only * care if there is more than one. */ - if (type == WINDOW_SIZE_LATEST) + if (type == WINDOW_SIZE_LATEST && w != NULL) n = clients_with_window(w); /* Loop over the clients and work out the size. */