X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/5dd6771b28c257af405d7248639ed0e3bcdce38b..94187a80bd60baab4b9c4b949ad820d730578123:/sbr/seq_setunseen.c diff --git a/sbr/seq_setunseen.c b/sbr/seq_setunseen.c index ea18d176..acba9d96 100644 --- a/sbr/seq_setunseen.c +++ b/sbr/seq_setunseen.c @@ -1,6 +1,4 @@ - -/* - * seq_setunseen.c -- add/delete all messages which have the SELECT_UNSEEN +/* seq_setunseen.c -- add/delete all messages which have the SELECT_UNSEEN * -- bit set to/from the Unseen-Sequence * * This code is Copyright (c) 2002, by the authors of nmh. See the @@ -9,6 +7,7 @@ */ #include +#include /* * We scan through the folder and act upon all messages @@ -28,14 +27,12 @@ seq_setunseen (struct msgs *mp, int seen) * Get the list of sequences for Unseen-Sequence * and split them. */ - if ((cp = context_find (usequence))) { - dp = getcpy (cp); - if (!(ap = brkstring (dp, " ", "\n")) || !*ap) { - free (dp); - return; - } - } else { - return; + if (!(cp = context_find (usequence))) + return; + dp = mh_xstrdup(cp); + if (!(ap = brkstring (dp, " ", "\n")) || !*ap) { + free (dp); + return; } /*