diff options
Diffstat (limited to 'src/shared')
-rw-r--r-- | src/shared/unit-name.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/shared/unit-name.c b/src/shared/unit-name.c index e8328c321a..e84d995dd7 100644 --- a/src/shared/unit-name.c +++ b/src/shared/unit-name.c @@ -335,7 +335,8 @@ bool unit_name_is_template(const char *n) { assert(n); - if (!(p = strchr(n, '@'))) + p = strchr(n, '@'); + if (!p) return false; return p[1] == '.'; |