X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/2c00d4488d86c136d4ef1dcd78cce0d23c91d736..c4db59aa4b58bca9cd146ae30f507c16218a67d7:/sbr/addrsbr.c diff --git a/sbr/addrsbr.c b/sbr/addrsbr.c index 6bb94211..70ddb8db 100644 --- a/sbr/addrsbr.c +++ b/sbr/addrsbr.c @@ -145,16 +145,7 @@ getm (char *str, char *dfhost, int dftype, char *eresult, size_t eresultsize) dftype = LOCALHOST; } - mp = (struct mailname *) mh_xcalloc ((size_t) 1, sizeof(*mp)); - if (mp == NULL) { - if (eresult) { - strncpy (eresult, "insufficient memory to represent address", - eresultsize); - eresult[eresultsize - 1] = '\0'; - } - return NULL; - } - + NEW0(mp); mp->m_next = NULL; mp->m_text = getcpy (str); if (pers)