From d5a55f5e6ed4d2ba64fed2697c4e8a9477477364 Mon Sep 17 00:00:00 2001 From: vague666 Date: Wed, 18 Mar 2020 17:27:18 +0100 Subject: [PATCH] unignore_time can not be NULL, check for 0 instead --- src/fe-common/core/fe-ignore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fe-common/core/fe-ignore.c b/src/fe-common/core/fe-ignore.c index e34055bc..890d2c19 100644 --- a/src/fe-common/core/fe-ignore.c +++ b/src/fe-common/core/fe-ignore.c @@ -70,7 +70,7 @@ static void ignore_print(int index, IGNORE_REC *rec) g_string_append_printf(options, "-network %s ", rec->servertag); if (rec->pattern != NULL) g_string_append_printf(options, "-pattern %s ", rec->pattern); - if (rec->unignore_time != NULL) { + if (rec->unignore_time != 0) { ts = *localtime(&rec->unignore_time); strftime(buf, sizeof(buf), "%Y-%m-%d %H:%M:%S", &ts); g_string_append_printf(options, "ignore ends: %s ", buf);