1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-25 01:34:28 +03:00

journal-gatewayd: add missing assertions

This commit is contained in:
Mike Yuan 2024-04-17 21:50:05 +08:00
parent c5d6754725
commit 3d6d879d26
No known key found for this signature in database
GPG Key ID: 417471C0A40F58B3

View File

@ -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;