]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
unit-file: fix coverity issue
authorLennart Poettering <lennart@poettering.net>
Wed, 31 Jul 2019 07:39:12 +0000 (09:39 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 31 Jul 2019 07:39:12 +0000 (09:39 +0200)
Fixes coverity issue 1403820

src/shared/unit-file.c

index 8a09f3827f7948a0fc3f7864998b7228345ae030..db73c9bd4b684501d5c59a02e4c268f95d22fd86 100644 (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 */