[Freeswitch-svn] [commit] r12681 - freeswitch/trunk/src/mod/endpoints/mod_dingaling
FreeSWITCH SVN
anthm at freeswitch.org
Fri Mar 20 06:51:46 PDT 2009
Author: anthm
Date: Fri Mar 20 08:51:46 2009
New Revision: 12681
Log:
add switch_str_nil to avoid printing (null)
Modified:
freeswitch/trunk/src/mod/endpoints/mod_dingaling/mod_dingaling.c
Modified: freeswitch/trunk/src/mod/endpoints/mod_dingaling/mod_dingaling.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_dingaling/mod_dingaling.c (original)
+++ freeswitch/trunk/src/mod/endpoints/mod_dingaling/mod_dingaling.c Fri Mar 20 08:51:46 2009
@@ -1839,7 +1839,13 @@
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG,
"Invalid Profile\n" "login[%s]\n" "pass[%s]\n" "dialplan[%s]\n"
"message[%s]\n" "rtp-ip[%s]\n" "name[%s]\n" "exten[%s]\n",
- profile->login, profile->password, profile->dialplan, profile->message, profile->ip, profile->name, profile->exten);
+ switch_str_nil(profile->login),
+ switch_str_nil(profile->password),
+ switch_str_nil(profile->dialplan),
+ switch_str_nil(profile->message),
+ switch_str_nil(profile->ip),
+ switch_str_nil(profile->name),
+ switch_str_nil(profile->exten));
return SWITCH_STATUS_FALSE;
}
More information about the Freeswitch-svn
mailing list