]> diplodocus.org Git - nmh/blobdiff - uip/replsbr.c
uip/folder.c: Rewrite plural test to common form.
[nmh] / uip / replsbr.c
index fe79c2953f2eae599ed29c63f9d2484d2c27e62a..3f40a61435e1810e28dfed786c8464f96d368810 100644 (file)
@@ -384,10 +384,10 @@ insert (struct mailname *np)
        return 0;
 
     for (mp = &mq; mp->m_next; mp = mp->m_next) {
-       if (!strcasecmp (np->m_host ? np->m_host : "",
-                        mp->m_next->m_host ? mp->m_next->m_host : "")  &&
-           !strcasecmp (np->m_mbox ? np->m_mbox : "",
-                        mp->m_next->m_mbox ? mp->m_next->m_mbox : ""))
+       if (!strcasecmp (FENDNULL(np->m_host),
+                        FENDNULL(mp->m_next->m_host))  &&
+           !strcasecmp (FENDNULL(np->m_mbox),
+                        FENDNULL(mp->m_next->m_mbox)))
            return 0;
     }
     if (!ccme && ismymbox (np))