From: Anthony Minessale Date: Tue, 15 Jul 2008 14:56:15 +0000 (+0000) Subject: fix possible printf of NULL X-Git-Tag: v1.0.1~133 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6e4a679e19448d8fbd06dc6bd23f1bd231071ca7;p=thirdparty%2Ffreeswitch.git fix possible printf of NULL git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9034 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/mod/applications/mod_commands/mod_commands.c b/src/mod/applications/mod_commands/mod_commands.c index c1405aec0f..8ee223b47c 100644 --- a/src/mod/applications/mod_commands/mod_commands.c +++ b/src/mod/applications/mod_commands/mod_commands.c @@ -1632,7 +1632,7 @@ static void sch_api_callback(switch_scheduler_task_t *task) SWITCH_STANDARD_STREAM(stream); switch_api_execute(cmd, arg, NULL, &stream); - switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Command %s(%s):\n%s\n", cmd, arg, switch_str_nil((char *) stream.data)); + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Command %s(%s):\n%s\n", cmd, switch_str_nil(arg), switch_str_nil((char *) stream.data)); switch_safe_free(stream.data); }