From: Ralph Corderoy Date: Tue, 18 Oct 2016 13:52:25 +0000 (+0100) Subject: Replace getcpy() with mh_xstrdup() where the string isn't NULL. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/58136b15d4b0a0f124a21055b6aa4217f1ace7e1?ds=inline Replace getcpy() with mh_xstrdup() where the string isn't NULL. --- diff --git a/uip/mhstoresbr.c b/uip/mhstoresbr.c index 9869914b..676ac49a 100644 --- a/uip/mhstoresbr.c +++ b/uip/mhstoresbr.c @@ -116,7 +116,7 @@ store_all_messages (mhstoreinfo_t info) * store any contents. */ if ((cp = context_find (nmhstorage)) && *cp) - info->dir = getcpy (cp); + info->dir = mh_xstrdup(cp); else info->dir = getcpy (info->cwd);