diff options
Diffstat (limited to 'src/or/main.c')
-rw-r--r-- | src/or/main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/main.c b/src/or/main.c index 640edffe75..054097b7fb 100644 --- a/src/or/main.c +++ b/src/or/main.c @@ -667,7 +667,8 @@ static int init_from_config(int argc, char **argv) { } /* Ensure data directory is private; create if possible. */ - if (check_private_dir(get_data_directory(&options), 1) != 0) { + if (get_data_directory(&options) && + check_private_dir(get_data_directory(&options), 1) != 0) { log_fn(LOG_ERR, "Couldn't access/create private data directory %s", get_data_directory(&options)); return -1; |