summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Schmidt <mschmidt@redhat.com>2012-07-26 10:13:26 +0200
committerMichal Schmidt <mschmidt@redhat.com>2012-07-26 10:14:33 +0200
commita7b9ecf9b20866a5dc09359b3c65a6e6f00490cf (patch)
tree12259f9d9a725a31782d50d13f923e57b298908f
parent29283ea4cf5df20aa0ea9e24e3cb7035bf4c4a04 (diff)
unit-name: style fix in unit_name_is_template()
to make it look like the newly added unit_name_is_instance()
-rw-r--r--src/shared/unit-name.c3
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] == '.';