]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
WTF
authorAnthony Minessale <anthony.minessale@gmail.com>
Fri, 25 May 2007 20:39:13 +0000 (20:39 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Fri, 25 May 2007 20:39:13 +0000 (20:39 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5219 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_log.c

index c63604bd54c648c6efe9aef3924c1bc9841f0741..1b670f4314dffc9845d5f917ff894785b37b8ae4 100644 (file)
@@ -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) {