[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] r14829: Fix warning when compiling with dmalloc. (tor/trunk/src/or)



Author: nickm
Date: 2008-05-29 10:37:56 -0400 (Thu, 29 May 2008)
New Revision: 14829

Modified:
   tor/trunk/src/or/main.c
Log:
Fix warning when compiling with dmalloc.

Modified: tor/trunk/src/or/main.c
===================================================================
--- tor/trunk/src/or/main.c	2008-05-29 14:37:16 UTC (rev 14828)
+++ tor/trunk/src/or/main.c	2008-05-29 14:37:56 UTC (rev 14829)
@@ -1996,9 +1996,11 @@
   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
   {