Explicit checks for return values of strcmp().
[mmh] / uip / show.c
index 999272b..e7ecb72 100644 (file)
@@ -335,7 +335,7 @@ go_to_it: ;
        ** add the path to the message names.  Currently, we are just
        ** checking for mhn here, since we've already taken care of mhl.
        */
-       if (!strcmp(mhbasename(proc), "mhl")
+       if (strcmp(mhbasename(proc), "mhl")==0
                        && !file
                        && chdir(maildir =
                        concat(toabsdir("+"), "/", NULL)) != NOTOK) {