]> diplodocus.org Git - nmh/blobdiff - uip/ali.c
Merge branch 'master' of ssh://git.sv.gnu.org/srv/git/nmh
[nmh] / uip / ali.c
index 3893a1d..1fa7ef8 100644 (file)
--- a/uip/ali.c
+++ b/uip/ali.c
@@ -231,8 +231,10 @@ print_usr (char *s, int list, int norm)
        while ((cp = getname (pp))) {
            if ((np = getm (cp, NULL, 0, norm, NULL)) == NULL)
                continue;
-           if (!mh_strcasecmp (mp->m_host, np->m_host)
-                   && !mh_strcasecmp (mp->m_mbox, np->m_mbox)) {
+           if (!strcasecmp (mp->m_host ? mp->m_host : "",
+                            np->m_host ? np->m_host : "")  &&
+               !strcasecmp (mp->m_mbox ? mp->m_mbox : "",
+                            np->m_mbox ? np->m_mbox : "")) {
                vp = vp ? add (ak->ak_name, add (",", vp))
                    : getcpy (ak->ak_name);
                mnfree (np);