From 46007ab54e24280df96ea44b1cf09cc32514e6bd Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Sat, 27 Mar 2021 11:07:12 +0100 Subject: [PATCH] parse_time_header(): Silence a coverity complaint when building without assertions --- parsers.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/parsers.c b/parsers.c index dcb12305..1cb46dfe 100644 --- a/parsers.c +++ b/parsers.c @@ -4628,7 +4628,10 @@ static jb_err parse_time_header(const char *header, time_t *result) * through sed() which requires a header name followed by * a colon. */ - assert(header_time != NULL); + if (header_time == NULL) + { + return JB_ERR_PARSE; + } header_time++; if (*header_time == ' ') -- 2.39.2