From 17cd7f34333fe25981489e53a1bf58b696170510 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Fri, 25 May 2007 20:39:13 +0000 Subject: [PATCH] WTF git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5219 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/switch_log.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/switch_log.c b/src/switch_log.c index c63604bd54..1b670f4314 100644 --- a/src/switch_log.c +++ b/src/switch_log.c @@ -114,8 +114,9 @@ SWITCH_DECLARE(switch_status_t) switch_log_bind_logger(switch_log_function_t fun static void *SWITCH_THREAD_FUNC log_thread(switch_thread_t * thread, void *obj) { - /* To Be or Not To Be */ - assert(obj == NULL || obj != NULL); + if (!obj) { + obj = NULL; + } THREAD_RUNNING = 1; while (THREAD_RUNNING == 1) {