core: add forgotten return in error path

If we get an error here, this is most likely oom, and we should not continue.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2020-05-27 09:02:53 +02:00
parent 3035a7c577
commit 1414090854
+1 -1
View File
@@ -4782,7 +4782,7 @@ int unit_load_fragment(Unit *u) {
&u->manager->unit_name_map,
&u->manager->unit_path_cache);
if (r < 0)
log_error_errno(r, "Failed to rebuild name map: %m");
return log_error_errno(r, "Failed to rebuild name map: %m");
r = unit_file_find_fragment(u->manager->unit_id_map,
u->manager->unit_name_map,