summaryrefslogtreecommitdiff
path: root/src/or/dirserv.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-11-09 07:20:21 +0000
committerRoger Dingledine <arma@torproject.org>2004-11-09 07:20:21 +0000
commitcad26b343dba0ee1047a0053256e2b9845f90743 (patch)
tree0f40d44306260eae9742801891a12b52f9ecddce /src/or/dirserv.c
parent180e0a9326a1383cf3a945e84700f99f5f9e4df1 (diff)
downloadtor-cad26b343dba0ee1047a0053256e2b9845f90743.tar.gz
tor-cad26b343dba0ee1047a0053256e2b9845f90743.zip
once normalized, DataDirectory is always defined
svn:r2734
Diffstat (limited to 'src/or/dirserv.c')
-rw-r--r--src/or/dirserv.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/or/dirserv.c b/src/or/dirserv.c
index 2e6508b056..c0fc76c391 100644
--- a/src/or/dirserv.c
+++ b/src/or/dirserv.c
@@ -711,11 +711,9 @@ void dirserv_set_cached_directory(const char *directory, time_t when)
log_fn(LOG_WARN,"Error compressing cached directory");
}
cached_directory_published = when;
- if(get_options()->DataDirectory) {
- tor_snprintf(filename,sizeof(filename),"%s/cached-directory", get_options()->DataDirectory);
- if(write_str_to_file(filename,cached_directory,0) < 0) {
- log_fn(LOG_WARN, "Couldn't write cached directory to disk. Ignoring.");
- }
+ tor_snprintf(filename,sizeof(filename),"%s/cached-directory", get_options()->DataDirectory);
+ if(write_str_to_file(filename,cached_directory,0) < 0) {
+ log_fn(LOG_WARN, "Couldn't write cached directory to disk. Ignoring.");
}
}
}