From: Ralph Corderoy Date: Tue, 18 Oct 2016 12:37:15 +0000 (+0100) Subject: Replace getcpy() with mh_xstrdup() where the string isn't NULL. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/12bfc38274e1d28d688cb1f3e71e789a41b7c516 Replace getcpy() with mh_xstrdup() where the string isn't NULL. --- diff --git a/sbr/seq_setunseen.c b/sbr/seq_setunseen.c index ea18d176..16d028aa 100644 --- a/sbr/seq_setunseen.c +++ b/sbr/seq_setunseen.c @@ -9,6 +9,7 @@ */ #include +#include /* * We scan through the folder and act upon all messages @@ -29,7 +30,7 @@ seq_setunseen (struct msgs *mp, int seen) * and split them. */ if ((cp = context_find (usequence))) { - dp = getcpy (cp); + dp = mh_xstrdup(cp); if (!(ap = brkstring (dp, " ", "\n")) || !*ap) { free (dp); return;