parse_time_header(): Silence a coverity complaint when building without assertions
[privoxy.git] / parsers.c
index dcb1230..1cb46df 100644 (file)
--- 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 == ' ')