Revision
15716
Author
mikej
Date
2009-11-30 06:20:55 -0600 (Mon, 30 Nov 2009)

Log Message

test build of this on openwrt please

Modified Paths

Diff

Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c (15715 => 15716)


--- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c	2009-11-29 23:03:37 UTC (rev 15715)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c	2009-11-30 12:20:55 UTC (rev 15716)
@@ -1302,9 +1302,11 @@
 
 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);
 	}
 }