From 3d5a02bf45f03f9dc37b2178ac7964f3f2b3748c Mon Sep 17 00:00:00 2001 From: nicm Date: Tue, 5 Oct 2021 12:45:02 +0000 Subject: [PATCH] Do not try to use NULL time values. --- format.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/format.c b/format.c index 8202a256..55b40ec0 100644 --- a/format.c +++ b/format.c @@ -3327,7 +3327,7 @@ format_find(struct format_tree *ft, const char *key, int modifiers, 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;