]> 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 13:52:25 +0000 (14:52 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Tue, 18 Oct 2016 13:52:25 +0000 (14:52 +0100)
uip/install-mh.c

index ea4e876..ce76638 100644 (file)
@@ -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;