summaryrefslogtreecommitdiffstats
path: root/src/journal-remote
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2023-07-05 02:59:51 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2023-07-05 17:06:25 +0200
commit7050d928be08475766e3b67ef1ca4467c43864d1 (patch)
treee334bb1205a1690c0f86de75d712f4ba292eaabe /src/journal-remote
parentjournal-upload: replace deprecated sd_journal_open_container() (diff)
downloadsystemd-7050d928be08475766e3b67ef1ca4467c43864d1.tar.xz
systemd-7050d928be08475766e3b67ef1ca4467c43864d1.zip
journal-upload: add missing assertion
Diffstat (limited to 'src/journal-remote')
-rw-r--r--src/journal-remote/journal-upload.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/journal-remote/journal-upload.c b/src/journal-remote/journal-upload.c
index 9d53cc4d09..db74355842 100644
--- a/src/journal-remote/journal-upload.c
+++ b/src/journal-remote/journal-upload.c
@@ -770,6 +770,8 @@ static int parse_argv(int argc, char *argv[]) {
static int open_journal(sd_journal **j) {
int r;
+ assert(j);
+
if (arg_directory)
r = sd_journal_open_directory(j, arg_directory, arg_journal_type);
else if (arg_file)