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