chiark / gitweb /
nspawn: use automatic cleanup and provide debug info
[elogind.git] / src / shared / util.c
index ed9b56e18e14087fc458fcbb15a6d321da237a07..d2ca3fc783a9c7f8d7b6d90ec569207a3118da23 100644 (file)
@@ -1688,7 +1688,8 @@ char *xescape(const char *s, const char *bad) {
          * chars, in \xFF style escaping. May be reversed with
          * cunescape. */
 
-        if (!(r = new(char, strlen(s)*4+1)))
+        r = new(char, strlen(s) * 4 + 1);
+        if (!r)
                 return NULL;
 
         for (f = s, t = r; *f; f++) {