From e89bf1c573e250bb13847ded09d921d5ad60a461 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Thu, 27 Mar 2008 20:05:44 +0000 Subject: 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 --- src/or/main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/or/main.c b/src/or/main.c index 4ff46461f..1b50b4d7d 100644 --- a/src/or/main.c +++ b/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 { -- cgit v1.2.3