From: Ralph Corderoy Date: Tue, 18 Oct 2016 13:52:26 +0000 (+0100) Subject: Replace getcpy() with mh_xstrdup() where the string isn't NULL. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/cd6d67151dfb691ea6f5ce3eef3562ab93a8847b?ds=sidebyside;hp=6840e8ab4e69caead96fced2ae896f778651d113 Replace getcpy() with mh_xstrdup() where the string isn't NULL. --- 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);