diff options
author | Nick Mathewson <nickm@torproject.org> | 2011-05-11 22:49:44 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2011-05-11 22:49:44 -0400 |
commit | d1c7f65a8e76b594c63bf23baf7fb6c19ba44c00 (patch) | |
tree | 981c40261f0e943f5cb6f3404284bf9cf8a7270d /src/or/config.c | |
parent | e7b10e5ecfdf3ede4123f921c1d2419268235176 (diff) | |
parent | 13847b8db6b676c4f2951a4195758f395b7551a8 (diff) | |
download | tor-d1c7f65a8e76b594c63bf23baf7fb6c19ba44c00.tar.gz tor-d1c7f65a8e76b594c63bf23baf7fb6c19ba44c00.zip |
Merge branch 'bug3135' into maint-0.2.1
Diffstat (limited to 'src/or/config.c')
-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 9cd8149ce8..fbfa771ed3 100644 --- a/src/or/config.c +++ b/src/or/config.c @@ -4625,7 +4625,7 @@ write_configuration_file(const char *fname, or_options_t *options) switch (file_status(fname)) { case FN_FILE: old_val = read_file_to_str(fname, 0, NULL); - if (strcmpstart(old_val, GENERATED_FILE_PREFIX)) { + if (!old_val || strcmpstart(old_val, GENERATED_FILE_PREFIX)) { rename_old = 1; } tor_free(old_val); |