From e3e136ee56fdb815e408b5764cf0f1e54fe7ad17 Mon Sep 17 00:00:00 2001 From: Ralph Corderoy Date: Tue, 18 Oct 2016 13:37:14 +0100 Subject: [PATCH] Replace getcpy() with mh_xstrdup() where the string isn't NULL. --- sbr/seq_setprev.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.56.0