summaryrefslogtreecommitdiffstats
path: root/src/journal-remote
diff options
context:
space:
mode:
authorMike Yuan <me@yhndnzj.com>2024-04-17 15:50:05 +0200
committerMike Yuan <me@yhndnzj.com>2024-04-17 15:50:05 +0200
commit3d6d879d2672350bd78122bb96fbd3fced3a1814 (patch)
tree38896bcd88edfc3095282845d18ded0e7f1ba34b /src/journal-remote
parentjournal-gatewayd: remove duplicate call to `startswith()` (diff)
downloadsystemd-3d6d879d2672350bd78122bb96fbd3fced3a1814.tar.xz
systemd-3d6d879d2672350bd78122bb96fbd3fced3a1814.zip
journal-gatewayd: add missing assertions
Diffstat (limited to 'src/journal-remote')
-rw-r--r--src/journal-remote/journal-gatewayd.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/journal-remote/journal-gatewayd.c b/src/journal-remote/journal-gatewayd.c
index 08ea94f6d4..036283fcd2 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;