1
1
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:
Lukas Nykryn 2013-04-10 12:53:58 +02:00 committed by Zbigniew Jędrzejewski-Szmek
parent 1c6330456c
commit 3a819b1b62

View File

@ -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;
}