=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/format.c,v retrieving revision 1.294 retrieving revision 1.295 diff -u -r1.294 -r1.295 --- src/usr.bin/tmux/format.c 2021/08/20 20:08:30 1.294 +++ src/usr.bin/tmux/format.c 2021/10/05 12:45:02 1.295 @@ -1,4 +1,4 @@ -/* $OpenBSD: format.c,v 1.294 2021/08/20 20:08:30 nicm Exp $ */ +/* $OpenBSD: format.c,v 1.295 2021/10/05 12:45:02 nicm Exp $ */ /* * Copyright (c) 2011 Nicholas Marriott @@ -3327,7 +3327,7 @@ fte = format_table_get(key); if (fte != NULL) { value = fte->cb(ft); - if (fte->type == FORMAT_TABLE_TIME) + if (fte->type == FORMAT_TABLE_TIME && value != NULL) t = ((struct timeval *)value)->tv_sec; else found = value;