瀏覽代碼

r19109@catbus: nickm | 2008-03-27 16:05:18 -0400
Replace a syntax error and a log message that was never emitted with a simple assert. Asserts are fun and easy.


svn:r14224

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

+ 1 - 2
src/or/main.c

@@ -1978,8 +1978,7 @@ tor_main(int argc, char *argv[])
 #ifdef USE_DMALLOC
   int r = CRYPTO_set_mem_ex_functions(_tor_malloc, _tor_realloc,
                                       _tor_dmalloc_free);
-  if (!r) {
-    log_warn("Couldn't configure openssl to use dmalloc functions.");
+  tor_assert(r);
 #endif
 #ifdef NT_SERVICE
   {