]> diplodocus.org Git - nmh/commitdiff
Replace getcpy() with mh_xstrdup() where the string isn't NULL.
authorRalph Corderoy <ralph@inputplus.co.uk>
Tue, 18 Oct 2016 12:37:14 +0000 (13:37 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Tue, 18 Oct 2016 12:37:14 +0000 (13:37 +0100)
sbr/context_replace.c

index 907acb3..6a270c0 100644 (file)
@@ -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;