From: Mike Yuan Date: Wed, 17 Apr 2024 13:50:05 +0000 (+0800) Subject: journal-gatewayd: add missing assertions X-Git-Tag: v256-rc1~152^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3d6d879d2672350bd78122bb96fbd3fced3a1814;p=thirdparty%2Fsystemd.git journal-gatewayd: add missing assertions --- diff --git a/src/journal-remote/journal-gatewayd.c b/src/journal-remote/journal-gatewayd.c index 08ea94f6d40..036283fcd2d 100644 --- a/src/journal-remote/journal-gatewayd.c +++ b/src/journal-remote/journal-gatewayd.c @@ -348,6 +348,9 @@ static int request_parse_range_entries( const char *colon; int r; + assert(m); + assert(entries_request); + colon = strchr(entries_request, ':'); if (!colon) m->cursor = strdup(entries_request); @@ -376,6 +379,9 @@ static int request_parse_range_time( const char *colon; int r; + assert(m); + assert(time_request); + colon = strchr(time_request, ':'); if (!colon) return -EINVAL;