Explicit checks for return values of strcmp().
[mmh] / uip / mhshowsbr.c
index 8fed651..ee401a7 100644 (file)
@@ -110,7 +110,7 @@ show_all_messages(CT *cts)
        /*
        ** If form is "mhl.null", suppress display of header.
        */
-       if (!strcmp(formsw, "mhl.null"))
+       if (strcmp(formsw, "mhl.null")==0)
                formsw = NULL;
 
        for (ctp = cts; *ctp; ctp++) {
@@ -348,7 +348,7 @@ show_content_aux(CT ct, int serial, int alternate, char *cp, char *cracked)
        file = NULL;
        if ((fd = (*ct->c_ceopenfnx) (ct, &file)) == NOTOK)
                return NOTOK;
-       if (ct->c_showproc && !strcmp(ct->c_showproc, "true"))
+       if (ct->c_showproc && strcmp(ct->c_showproc, "true")==0)
                return (alternate ? DONE : OK);
 
        xlist  = 0;
@@ -884,7 +884,7 @@ show_multi_aux(CT ct, int serial, int alternate, char *cp)
                        /* I'm not sure if this is necessary? */
                        p->c_storage = getcpy(file);
 
-                       if (p->c_showproc && !strcmp(p->c_showproc, "true"))
+                       if (p->c_showproc && strcmp(p->c_showproc, "true")==0)
                                return (alternate ? DONE : OK);
                        (*p->c_ceclosefnx) (p);
                }