From 3a819b1b6289311ebf09e94c6240dfb6be7a0496 Mon Sep 17 00:00:00 2001 From: Lukas Nykryn Date: Wed, 10 Apr 2013 12:53:58 +0200 Subject: [PATCH] journalctl: check return of strjoin --- src/journal/journalctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/journal/journalctl.c b/src/journal/journalctl.c index 86895b8f5..002ff7cda 100644 --- a/src/journal/journalctl.c +++ b/src/journal/journalctl.c @@ -1035,7 +1035,7 @@ int main(int argc, char *argv[]) { char _cleanup_free_ *copy = NULL; if (arg_root) { copy = strjoin(arg_root, "/", CATALOG_DATABASE, NULL); - if (!database) { + if (!copy) { r = log_oom(); goto finish; } -- 2.30.2