diff options
author | Lennart Poettering <lennart@poettering.net> | 2011-06-28 02:53:15 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2011-06-28 02:53:15 +0200 |
commit | 15e11d81e7c26439f583e1cf67ac3c712430a79e (patch) | |
tree | 3c4986e97840e88e539c72c38fc64398f4bf94d1 /src/unit-name.c | |
parent | 21308c654dda82726f634fc695529d3af33e6fb6 (diff) |
unit: when loading symlinked template units, properly add all names on the way to the unit
Diffstat (limited to 'src/unit-name.c')
-rw-r--r-- | src/unit-name.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/unit-name.c b/src/unit-name.c index be4e73edcc..6d45576f85 100644 --- a/src/unit-name.c +++ b/src/unit-name.c @@ -272,9 +272,10 @@ char *unit_name_unescape(const char *f) { else if (*f == '\\') { int a, b; - if (f[1] != 'x' || (a = unhexchar(f[2])) < 0 || - (b = unhexchar(f[3])) < 0) { - /* Invalid escape code, let's take it literal then */ + if (f[1] != 'x' || + (a = unhexchar(f[2])) < 0 || + (b = unhexchar(f[3])) < 0) { + /* Invalid escape code, let's take it literal then */ *(t++) = '\\'; } else { *(t++) = (char) ((a << 4) | b); |