diff options
author | Nick Mathewson <nickm@torproject.org> | 2013-06-24 12:55:29 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2013-06-24 12:55:29 -0400 |
commit | cde1a2ca059d892a970c57fc265261125aefe2cb (patch) | |
tree | fdff3e5b0c06ce3da9cb973b4d28ef5f14f3ee27 /src | |
parent | 10480dff01bece13fabb1d81fa847f95c3e839f0 (diff) | |
parent | ca6aacce16ce057bab71900e078a24fcd63d250f (diff) | |
download | tor-cde1a2ca059d892a970c57fc265261125aefe2cb.tar.gz tor-cde1a2ca059d892a970c57fc265261125aefe2cb.zip |
Merge remote-tracking branch 'origin/maint-0.2.4'
Diffstat (limited to 'src')
-rw-r--r-- | src/or/config.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/or/config.c b/src/or/config.c index 09cbdcfbdb..a47f349c25 100644 --- a/src/or/config.c +++ b/src/or/config.c @@ -3886,6 +3886,10 @@ options_init_from_string(const char *cf_defaults, const char *cf, newdefaultoptions = config_dup(&options_format, newoptions); } + if (newdefaultoptions == NULL) { + newdefaultoptions = config_dup(&options_format, global_default_options); + } + /* Go through command-line variables too */ retval = config_assign(&options_format, newoptions, global_cmdline_options, 0, 0, msg); |