From cd6d67151dfb691ea6f5ce3eef3562ab93a8847b Mon Sep 17 00:00:00 2001 From: Ralph Corderoy Date: Tue, 18 Oct 2016 14:52:26 +0100 Subject: [PATCH] Replace getcpy() with mh_xstrdup() where the string isn't NULL. --- uip/refile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uip/refile.c b/uip/refile.c index 6f8438d0..ce56c51e 100644 --- a/uip/refile.c +++ b/uip/refile.c @@ -217,7 +217,7 @@ main (int argc, char **argv) */ for (msgnum = mp->lowsel; msgnum <= mp->hghsel; msgnum++) { if (is_selected (mp, msgnum)) { - cp = getcpy (m_name (msgnum)); + cp = mh_xstrdup(m_name (msgnum)); if (m_file (mp, cp, retainseqs ? msgnum : 0, folders, foldp, preserve, !linkf)) done (1); -- 2.56.0