From: Ralph Corderoy Date: Tue, 18 Oct 2016 12:37:14 +0000 (+0100) Subject: Replace getcpy() with mh_xstrdup() where the string isn't NULL. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/e3e136ee56fdb815e408b5764cf0f1e54fe7ad17?ds=sidebyside Replace getcpy() with mh_xstrdup() where the string isn't NULL. --- diff --git a/sbr/seq_setprev.c b/sbr/seq_setprev.c index 11de1439..d336e2a9 100644 --- a/sbr/seq_setprev.c +++ b/sbr/seq_setprev.c @@ -8,6 +8,7 @@ */ #include +#include /* * Add all the messages currently SELECTED to @@ -27,7 +28,7 @@ seq_setprev (struct msgs *mp) * and split them. */ if ((cp = context_find (psequence))) { - dp = getcpy (cp); + dp = mh_xstrdup(cp); if (!(ap = brkstring (dp, " ", "\n")) || !*ap) { free (dp); return;