diff options
author | Nick Mathewson <nickm@torproject.org> | 2008-05-29 14:37:56 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2008-05-29 14:37:56 +0000 |
commit | 3a469018e54f20272425cf15ab6038f7d559ad1d (patch) | |
tree | ab80d15c6cc77da846667716acebdbb12bbfbd9d /src | |
parent | 716e8d9ff3246c1ae01047c6169f148e704757ac (diff) | |
download | tor-3a469018e54f20272425cf15ab6038f7d559ad1d.tar tor-3a469018e54f20272425cf15ab6038f7d559ad1d.tar.gz |
Fix warning when compiling with dmalloc.
svn:r14829
Diffstat (limited to 'src')
-rw-r--r-- | src/or/main.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/or/main.c b/src/or/main.c index 6993103a2..a00a3faf4 100644 --- a/src/or/main.c +++ b/src/or/main.c @@ -1996,9 +1996,11 @@ tor_main(int argc, char *argv[]) tor_threads_init(); init_logging(); #ifdef USE_DMALLOC - int r = CRYPTO_set_mem_ex_functions(_tor_malloc, _tor_realloc, - _tor_dmalloc_free); - tor_assert(r); + { + int r = CRYPTO_set_mem_ex_functions(_tor_malloc, _tor_realloc, + _tor_dmalloc_free); + tor_assert(r); + } #endif #ifdef NT_SERVICE { |