mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-10-30 14:55:26 +03:00
journalctl: check return of strjoin
This commit is contained in:
parent
1c6330456c
commit
3a819b1b62
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user