X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/1691e80890e5d8ba258c51c214a3e91880e1db2b..872ef4dde72a88ceb1358849a462f791135b842d:/sbr/seq_setprev.c diff --git a/sbr/seq_setprev.c b/sbr/seq_setprev.c index e5161c5a..5e5c43e9 100644 --- a/sbr/seq_setprev.c +++ b/sbr/seq_setprev.c @@ -1,11 +1,12 @@ - -/* - * seq_setprev.c -- set the Previous-Sequence +/* seq_setprev.c -- set the Previous-Sequence * - * $Id$ + * This code is Copyright (c) 2002, by the authors of nmh. See the + * COPYRIGHT file in the root directory of the nmh distribution for + * complete copyright information. */ #include +#include /* * Add all the messages currently SELECTED to @@ -24,14 +25,12 @@ seq_setprev (struct msgs *mp) * Get the list of sequences for Previous-Sequence * and split them. */ - if ((cp = context_find (psequence))) { - dp = getcpy (cp); - if (!(ap = brkstring (dp, " ", "\n")) || !*ap) { - free (dp); - return; - } - } else { - return; + if (!(cp = context_find(psequence))) + return; + dp = mh_xstrdup(cp); + if (!(ap = brkstring(dp, " ", "\n")) || !*ap) { + free(dp); + return; } /* Now add all SELECTED messages to each sequence */