X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/2d5d9e243c91784909b11948894e3ba0989107c0..ef1ba39e8dae81091b6c3e73e72825ef6edea3c6:/uip/install-mh.c?ds=sidebyside diff --git a/uip/install-mh.c b/uip/install-mh.c index a79793f5..70865337 100644 --- a/uip/install-mh.c +++ b/uip/install-mh.c @@ -80,8 +80,8 @@ main (int argc, char **argv) * the home directory field in the password file if that's not found. */ - if ((mypath = getenv("HOME")) == (char *)0) { - if ((pw = getpwuid(getuid())) == (struct passwd *)0 || *pw->pw_dir == '\0') + if ((mypath = getenv("HOME")) == NULL) { + if ((pw = getpwuid(getuid())) == NULL || *pw->pw_dir == '\0') adios(NULL, "cannot determine your home directory"); else mypath = pw->pw_dir; @@ -182,8 +182,8 @@ query: */ NEW(np); m_defs = np; - np->n_name = getcpy ("Path"); - np->n_field = getcpy (pathname); + np->n_name = mh_xstrdup("Path"); + np->n_field = mh_xstrdup(pathname); np->n_context = 0; np->n_next = NULL;