diff options
author | Nick Mathewson <nickm@torproject.org> | 2004-08-17 07:33:06 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2004-08-17 07:33:06 +0000 |
commit | 4e026f5b1d4c00c8c85528f8ac0cfa7c2234cd04 (patch) | |
tree | d835905304d5dab7e11bb0ad90d54921f0849a8f | |
parent | 9bcd4a9c6a86a0853dad47cd1b5bcdbcebcf04ea (diff) | |
download | tor-4e026f5b1d4c00c8c85528f8ac0cfa7c2234cd04.tar tor-4e026f5b1d4c00c8c85528f8ac0cfa7c2234cd04.tar.gz |
Fix crash when looking for ~/.torrc with no $HOME set
svn:r2256
-rw-r--r-- | src/or/config.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/config.c b/src/or/config.c index de529aafc..3d1c89e2b 100644 --- a/src/or/config.c +++ b/src/or/config.c @@ -669,7 +669,7 @@ int getconfig(int argc, char **argv, or_options_t *options) { using_default_torrc = 1; } else { char *fn = expand_filename("~/.torrc"); - if (file_status(fn)==FN_FILE) { + if (fn && file_status(fn)==FN_FILE) { fname = fn; } else { tor_free(fn); |