X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;ds=sidebyside;f=src%2Funit-name.c;h=6d45576f8546120081dc45c0f035633514c063e3;hb=85f19d825e7504676f3a80c78c1d9a7ec35a3b3f;hp=be4e73edccb0e3ae5561977aea456564626c1d69;hpb=35b8ca3aaf8cb044ad76675dfcad89e000dd4a5c;p=elogind.git diff --git a/src/unit-name.c b/src/unit-name.c index be4e73edc..6d45576f8 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);