From 58136b15d4b0a0f124a21055b6aa4217f1ace7e1 Mon Sep 17 00:00:00 2001 From: Ralph Corderoy Date: Tue, 18 Oct 2016 14:52:25 +0100 Subject: [PATCH] Replace getcpy() with mh_xstrdup() where the string isn't NULL. --- uip/mhstoresbr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.56.0