]> diplodocus.org Git - nmh/blobdiff - uip/fmttest.c
Finished replacing mh_strcasecmp() with strcasecmp(). Removed
[nmh] / uip / fmttest.c
index 8b81924b8ca22e176e2b433aaec512b4589ea8a1..cbc3459ab6e8991771c5de254365d46e35043363 100644 (file)
@@ -1301,8 +1301,10 @@ insert (struct mailname *np)
        return 0;
 
     for (mp = &mq; mp->m_next; mp = mp->m_next) {
-       if (!mh_strcasecmp (np->m_host, mp->m_next->m_host)
-               && !mh_strcasecmp (np->m_mbox, mp->m_next->m_mbox))
+       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 : ""))
            return 0;
     }
     if (!ccme && ismymbox (np))