journalctl: check return of strjoin

This commit is contained in:
Lukas Nykryn
2013-04-10 18:59:42 -04:00
committed by Zbigniew Jędrzejewski-Szmek
parent 1c6330456c
commit 3a819b1b62
+1 -1
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;
}