X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/2e768e3cc0ce768373d3320eca4cdd08b8cf646a..3c516d410d256012f843944b0f43a77d8c1ac146:/uip/replsbr.c diff --git a/uip/replsbr.c b/uip/replsbr.c index a7a214bf..de37e744 100644 --- a/uip/replsbr.c +++ b/uip/replsbr.c @@ -12,7 +12,6 @@ #include #include #include /* L_SET */ -#include extern short ccto; /* from repl.c */ extern short cccc; @@ -387,8 +386,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))