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