]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
test build of this on openwrt please
authorMichael Jerris <mike@jerris.com>
Mon, 30 Nov 2009 12:20:55 +0000 (12:20 +0000)
committerMichael Jerris <mike@jerris.com>
Mon, 30 Nov 2009 12:20:55 +0000 (12:20 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15716 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/sofia.c

index 5c5c31c3128512028fdff5b394cdfaa3b4ca1072..be40f13a04606a6e34f11cbea7c94584254d4739 100644 (file)
@@ -1302,9 +1302,11 @@ void launch_sofia_profile_thread(sofia_profile_t *profile)
 
 static void logger(void *logarg, char const *fmt, va_list ap)
 {
-       if (fmt && ap) {
+       if (!fmt) return;
+
+       if (ap) {
                switch_log_vprintf(SWITCH_CHANNEL_LOG_CLEAN, mod_sofia_globals.tracelevel, fmt, ap);
-       } else if (fmt && !ap) {
+       } else {
                switch_log_printf(SWITCH_CHANNEL_LOG_CLEAN, mod_sofia_globals.tracelevel, "%s", fmt);
        }
 }