unit-file: fix coverity issue

Fixes coverity issue 1403820
This commit is contained in:
Lennart Poettering
2019-07-31 09:39:12 +02:00
parent f4ea8432e6
commit 771f8aef57
+1 -1
View File
@@ -462,7 +462,7 @@ int unit_file_find_fragment(
r = unit_ids_map_get(unit_ids_map, template, &fragment);
if (r < 0 && !IN_SET(r, -ENOENT, -ENXIO))
return log_debug_errno(r, "Cannot load template %s: %m", *t);
return log_debug_errno(r, "Cannot load template %s: %m", template);
if (fragment) {
/* Add any aliases of the original name to the set of names */