From b6660ec721a3a3a0b4911a9c08e47a83449741e5 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Fri, 20 Mar 2009 13:51:46 +0000 Subject: [PATCH] add switch_str_nil to avoid printing (null) git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12681 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/endpoints/mod_dingaling/mod_dingaling.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/mod/endpoints/mod_dingaling/mod_dingaling.c b/src/mod/endpoints/mod_dingaling/mod_dingaling.c index 81bf71a119..3054955c8d 100644 --- a/src/mod/endpoints/mod_dingaling/mod_dingaling.c +++ b/src/mod/endpoints/mod_dingaling/mod_dingaling.c @@ -1839,7 +1839,13 @@ static switch_status_t init_profile(mdl_profile_t *profile, uint8_t login) 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; }