dtimsstart: Fix brackets on previous coverity fix
authorPeter Howkins <flibble@users.sf.net>
Mon, 30 Apr 2018 00:47:53 +0000 (01:47 +0100)
committerPeter Howkins <flibble@users.sf.net>
Mon, 30 Apr 2018 00:47:53 +0000 (01:47 +0100)
cde/programs/dtimsstart/env.c

index 90affbbc227dfaa599bd6e7d2b817be53034922c..3d60cd0ec0fb9c3c5fbbeb054dd37898af0094ed 100644 (file)
@@ -336,7 +336,7 @@ int make_new_environ(oenv, sel)
     }
 # endif        /* old_hpux */
     for (i = 0; i < num && (p = unsetp[i]); i++) {
-       if (strcmp(p, xmod) == 0 || (xinput && strcmp(p, xinput)) == 0)
+       if (strcmp(p, xmod) == 0 || (xinput && (strcmp(p, xinput) == 0)))
            continue;
        if (oenv->set) {
            for (ep2 = oenv->set; ep2->name; ep2++)