]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix warning when compiling with dmalloc.
authorNick Mathewson <nickm@torproject.org>
Thu, 29 May 2008 14:37:56 +0000 (14:37 +0000)
committerNick Mathewson <nickm@torproject.org>
Thu, 29 May 2008 14:37:56 +0000 (14:37 +0000)
svn:r14829

src/or/main.c

index 6993103a2dd1ae205ac2322856be1b7162dea093..a00a3faf4a42aa771c689e91397f9d4ae32fe3ef 100644 (file)
@@ -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
   {