diff options
author | Lennart Poettering <lennart@poettering.net> | 2020-05-12 19:15:38 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2020-05-13 21:32:34 +0200 |
commit | 020b4a023c2c6dda83afb9a82a62e640569c40c1 (patch) | |
tree | d65a09e5cafcd2610299a4b9bdc8aea70810e5ee /src/journal | |
parent | 549b7379ba404c33fd448d2bca46a57f6529b00b (diff) | |
download | systemd-020b4a023c2c6dda83afb9a82a62e640569c40c1.tar.gz |
journald: use the fact that client_context_release() returns NULL
Diffstat (limited to 'src/journal')
-rw-r--r-- | src/journal/journald-stream.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/journal/journald-stream.c b/src/journal/journald-stream.c index 593bbc1476..4f8b5ce301 100644 --- a/src/journal/journald-stream.c +++ b/src/journal/journald-stream.c @@ -563,8 +563,7 @@ static int stdout_stream_process(sd_event_source *es, int fd, uint32_t revents, goto terminate; s->ucred = *ucred; - client_context_release(s->server, s->context); - s->context = NULL; + s->context = client_context_release(s->server, s->context); } s->length += l; |