=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/format.c,v retrieving revision 1.211 retrieving revision 1.212 diff -u -r1.211 -r1.212 --- src/usr.bin/tmux/format.c 2019/09/24 14:50:08 1.211 +++ src/usr.bin/tmux/format.c 2019/10/14 09:24:06 1.212 @@ -1,4 +1,4 @@ -/* $OpenBSD: format.c,v 1.211 2019/09/24 14:50:08 nicm Exp $ */ +/* $OpenBSD: format.c,v 1.212 2019/10/14 09:24:06 nicm Exp $ */ /* * Copyright (c) 2011 Nicholas Marriott @@ -574,7 +574,7 @@ struct window_pane *wp = ft->wp; char *cmd; - if (wp == NULL) + if (wp == NULL || wp->shell == NULL) return; cmd = get_proc_name(wp->fd, wp->tty);