diff options
Diffstat (limited to 'src/journal-remote/journal-remote.c')
-rw-r--r-- | src/journal-remote/journal-remote.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/journal-remote/journal-remote.c b/src/journal-remote/journal-remote.c index a670468884..6e993863bf 100644 --- a/src/journal-remote/journal-remote.c +++ b/src/journal-remote/journal-remote.c @@ -122,14 +122,14 @@ int journal_remote_get_writer(RemoteServer *s, const char *host, Writer **writer if (w) writer_ref(w); else { - w = writer_new(s); - if (!w) - return log_oom(); + r = writer_new(s, &w); + if (r < 0) + return r; if (s->split_mode == JOURNAL_WRITE_SPLIT_HOST) { w->hashmap_key = strdup(key); if (!w->hashmap_key) - return log_oom(); + return -ENOMEM; } r = open_output(s, w, host); @@ -142,7 +142,6 @@ int journal_remote_get_writer(RemoteServer *s, const char *host, Writer **writer } *writer = TAKE_PTR(w); - return 0; } |