mirror of
https://github.com/tmux/tmux.git
synced 2024-11-17 18:08:51 +00:00
Do not try to use NULL time values.
This commit is contained in:
parent
68c8905859
commit
3d5a02bf45
2
format.c
2
format.c
@ -3327,7 +3327,7 @@ format_find(struct format_tree *ft, const char *key, int modifiers,
|
|||||||
fte = format_table_get(key);
|
fte = format_table_get(key);
|
||||||
if (fte != NULL) {
|
if (fte != NULL) {
|
||||||
value = fte->cb(ft);
|
value = fte->cb(ft);
|
||||||
if (fte->type == FORMAT_TABLE_TIME)
|
if (fte->type == FORMAT_TABLE_TIME && value != NULL)
|
||||||
t = ((struct timeval *)value)->tv_sec;
|
t = ((struct timeval *)value)->tv_sec;
|
||||||
else
|
else
|
||||||
found = value;
|
found = value;
|
||||||
|
Loading…
Reference in New Issue
Block a user