chiark / gitweb /
Link against -lcap only where required
[elogind.git] / src / unit-name.c
index be4e73edccb0e3ae5561977aea456564626c1d69..6d45576f8546120081dc45c0f035633514c063e3 100644 (file)
@@ -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);