From 3d6d879d2672350bd78122bb96fbd3fced3a1814 Mon Sep 17 00:00:00 2001 From: Mike Yuan Date: Wed, 17 Apr 2024 21:50:05 +0800 Subject: [PATCH] journal-gatewayd: add missing assertions --- src/journal-remote/journal-gatewayd.c | 6 ++++++ 1 file changed, 6 insertions(+) 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;