diff options
author | Ulf Lilleengen <lulf@pvv.ntnu.no> | 2008-08-18 12:33:02 +0200 |
---|---|---|
committer | Ulf Lilleengen <lulf@pvv.ntnu.no> | 2008-08-18 12:33:02 +0200 |
commit | 83eba401bb87038effa4012d2949c6d4a006559e (patch) | |
tree | f9a432a65053edde86a8feadbb83961dadad3238 /src/mfs_subr.c | |
parent | 4c8abbb856eba5b5ce81b7f32c45a47ae89eb719 (diff) |
Revert "- Add comment to bug."
This reverts commit c2289bd5e2bdb03230d75b7a05a3f053c1bafe6e.
Diffstat (limited to 'src/mfs_subr.c')
-rw-r--r-- | src/mfs_subr.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mfs_subr.c b/src/mfs_subr.c index b83c75d..420046b 100644 --- a/src/mfs_subr.c +++ b/src/mfs_subr.c @@ -62,6 +62,8 @@ char *mfs_get_home_path(const char *extra) char *res; const char *home = getenv("HOME"); + if (home == NULL) + return (NULL); hlen = strlen(home); exlen = (extra != NULL) ? strlen(extra) : 0; |