X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/17e279e347cc4636357c694b0f9b4c8ecff2addc..ef1ba39e8dae81091b6c3e73e72825ef6edea3c6:/uip/install-mh.c diff --git a/uip/install-mh.c b/uip/install-mh.c index ce766380..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;