瀏覽代碼

Fix warning when compiling with dmalloc.

svn:r14829
Nick Mathewson 17 年之前
父節點
當前提交
3a469018e5
共有 1 個文件被更改,包括 5 次插入3 次删除
  1. 5 3
      src/or/main.c

+ 5 - 3
src/or/main.c

@@ -1996,9 +1996,11 @@ tor_main(int argc, char *argv[])
   tor_threads_init();
   tor_threads_init();
   init_logging();
   init_logging();
 #ifdef USE_DMALLOC
 #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
 #endif
 #ifdef NT_SERVICE
 #ifdef NT_SERVICE
   {
   {