From: Ralph Corderoy Date: Tue, 18 Oct 2016 12:37:14 +0000 (+0100) Subject: Replace getcpy() with mh_xstrdup() where the string isn't NULL. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/9f8418e870a70c264eda1598f2d470e5428c216d?ds=inline Replace getcpy() with mh_xstrdup() where the string isn't NULL. --- diff --git a/sbr/context_replace.c b/sbr/context_replace.c index 907acb35..6a270c0f 100644 --- a/sbr/context_replace.c +++ b/sbr/context_replace.c @@ -41,7 +41,7 @@ context_replace (char *key, char *value) admonish (NULL, "bug: context_replace(key=\"%s\",value=\"%s\")", key, value); if (np->n_field) free (np->n_field); - np->n_field = getcpy (value); + np->n_field = mh_xstrdup(value); ctxflags |= CTXMOD; } return;