diff options
author | Greg Hudson <ghudson@mit.edu> | 1997-09-14 17:50:06 +0000 |
---|---|---|
committer | Greg Hudson <ghudson@mit.edu> | 1997-09-14 17:50:06 +0000 |
commit | ac16f380e349fa39ec7e26bccb5456cb300006a5 (patch) | |
tree | c07ca88af97b4f6b77d28a2dc723d2e4621ed302 /clients/xzwrite/gethomedir.c | |
parent | d33e482744fad80d95cdd89ed380c5b8401e49bf (diff) |
Pull in sources from zephyr locker. See /mit/zephyr/repository for
detailed change information.
Diffstat (limited to 'clients/xzwrite/gethomedir.c')
-rw-r--r-- | clients/xzwrite/gethomedir.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clients/xzwrite/gethomedir.c b/clients/xzwrite/gethomedir.c index 5c3d372..ffd25bf 100644 --- a/clients/xzwrite/gethomedir.c +++ b/clients/xzwrite/gethomedir.c @@ -1,5 +1,6 @@ #include <stdio.h> #include <pwd.h> +#include "xzwrite.h" char *get_home_dir() { @@ -8,7 +9,7 @@ char *get_home_dir() if (h) return h; - if (h = (char *) getenv("HOME")) return h; + if ((h = getenv("HOME")) != NULL) return h; pwuid = getpwuid(getuid()); return (pwuid->pw_dir); |