chiark / gitweb /
gcc: make a couple of gcc warnings go away
[elogind.git] / util.c
diff --git a/util.c b/util.c
index d2b73125c093d4752205a0d428b46591ee5bdea6..9df6af953f0e13d9ce881f442e88a6894ad799c9 100644 (file)
--- a/util.c
+++ b/util.c
@@ -903,8 +903,8 @@ char *xescape(const char *s, const char *bad) {
 
         for (f = s, t = r; *f; f++) {
 
-                if (*f < ' ' || *f >= 127 ||
-                    *f == '\\' || strchr(bad, *f)) {
+                if ((*f < ' ') || (*f >= 127) ||
+                    (*f == '\\') || strchr(bad, *f)) {
                         *(t++) = '\\';
                         *(t++) = 'x';
                         *(t++) = hexchar(*f >> 4);