From: Nick Mathewson Date: Thu, 29 May 2008 14:37:56 +0000 (+0000) Subject: Fix warning when compiling with dmalloc. X-Git-Tag: tor-0.2.1.1-alpha~80 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3a469018e54f20272425cf15ab6038f7d559ad1d;p=thirdparty%2Ftor.git Fix warning when compiling with dmalloc. svn:r14829 --- diff --git a/src/or/main.c b/src/or/main.c index 6993103a2d..a00a3faf4a 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 {