diff options
author | Roger Dingledine <arma@torproject.org> | 2004-11-09 02:12:55 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2004-11-09 02:12:55 +0000 |
commit | 3805221262c92802dfe57eff4cc8652ee62b8537 (patch) | |
tree | c19426670b99ce99e2ebf85e53462425dd8edb9f /src | |
parent | e3a067c73a0c483156cbe33350a7c2d67556c25c (diff) | |
download | tor-3805221262c92802dfe57eff4cc8652ee62b8537.tar.gz tor-3805221262c92802dfe57eff4cc8652ee62b8537.zip |
stop breaking the get_options() abstraction in config.c
svn:r2715
Diffstat (limited to 'src')
-rw-r--r-- | src/or/config.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/or/config.c b/src/or/config.c index e5916f1f49..6ca23e8371 100644 --- a/src/or/config.c +++ b/src/or/config.c @@ -1231,15 +1231,14 @@ getconfig(int argc, char **argv) static char **backup_argv; static int backup_argc; - /* we don't use get_options() here, since it's null on the first call */ - oldoptions = global_options; - if (argv) { /* first time we're called. save commandline args */ backup_argv = argv; backup_argc = argc; + oldoptions = NULL; } else { /* we're reloading. need to clean up old options first. */ argv = backup_argv; argc = backup_argc; + oldoptions = get_options(); } if (argc > 1 && (!strcmp(argv[1], "-h") || !strcmp(argv[1],"--help"))) { print_usage(); |