From: Ralph Corderoy Date: Tue, 18 Oct 2016 13:52:25 +0000 (+0100) Subject: Replace getcpy() with mh_xstrdup() where the string isn't NULL. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/17e279e347cc4636357c694b0f9b4c8ecff2addc?ds=sidebyside;hp=a53bce89b61471cfb7725435aa879226624eed8f Replace getcpy() with mh_xstrdup() where the string isn't NULL. --- diff --git a/uip/install-mh.c b/uip/install-mh.c index ea4e876b..ce766380 100644 --- a/uip/install-mh.c +++ b/uip/install-mh.c @@ -183,7 +183,7 @@ query: NEW(np); m_defs = np; np->n_name = mh_xstrdup("Path"); - np->n_field = getcpy (pathname); + np->n_field = mh_xstrdup(pathname); np->n_context = 0; np->n_next = NULL;