summaryrefslogtreecommitdiffstats
path: root/src/journal-remote
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2023-08-11 11:11:09 +0200
committerLuca Boccassi <luca.boccassi@gmail.com>2023-08-11 22:51:17 +0200
commit82ee54b2d88d1a2787c67ef4d73bc73c4047e0c9 (patch)
tree927383aa42c55e74a8a168fa1ecd4bc1c0fe478c /src/journal-remote
parentman: don't claim BindPaths= file systems would remain "in memory", they are j... (diff)
downloadsystemd-82ee54b2d88d1a2787c67ef4d73bc73c4047e0c9.tar.xz
systemd-82ee54b2d88d1a2787c67ef4d73bc73c4047e0c9.zip
iovec-util: add iovw_isempty() helper
Follow-up for: 3746131aac4798cacf67b60cfc4e2e1c80ec4efb
Diffstat (limited to 'src/journal-remote')
-rw-r--r--src/journal-remote/journal-remote-write.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/journal-remote/journal-remote-write.c b/src/journal-remote/journal-remote-write.c
index 515ea2681e..158d015d89 100644
--- a/src/journal-remote/journal-remote-write.c
+++ b/src/journal-remote/journal-remote-write.c
@@ -88,8 +88,7 @@ int writer_write(Writer *w,
int r;
assert(w);
- assert(iovw);
- assert(iovw->count > 0);
+ assert(!iovw_isempty(iovw));
if (journal_file_rotate_suggested(w->journal->file, 0, LOG_DEBUG)) {
log_info("%s: Journal header limits reached or header out-of-date, rotating",