Do not try to use NULL time values.

pull/2918/head
nicm 2021-10-05 12:45:02 +00:00
parent 68c8905859
commit 3d5a02bf45
1 changed files with 1 additions and 1 deletions

View File

@ -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;