Commit 3a819b1b authored by Lukas Nykryn's avatar Lukas Nykryn Committed by Zbigniew Jędrzejewski-Szmek

journalctl: check return of strjoin

parent 1c633045
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment