From: Mathieu Rene Date: Wed, 8 Apr 2009 16:20:15 +0000 (+0000) Subject: tweak X-Git-Tag: v1.0.4~1235 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cdc8fd5090d40c1d1a6c78836ed6dd2b4fb46d7f;p=thirdparty%2Ffreeswitch.git tweak git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12951 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/mod/endpoints/mod_sofia/sofia_glue.c b/src/mod/endpoints/mod_sofia/sofia_glue.c index 300bccd97d..dc80541e9c 100644 --- a/src/mod/endpoints/mod_sofia/sofia_glue.c +++ b/src/mod/endpoints/mod_sofia/sofia_glue.c @@ -2395,7 +2395,7 @@ void sofia_glue_set_r_sdp_codec_string(switch_channel_t *channel,const char *cod char *codec_order[SWITCH_MAX_CODECS]; const switch_codec_implementation_t *codecs[SWITCH_MAX_CODECS] = { 0 }; - if (codec_string) { + if (!switch_strlen_zero(codec_string)) { char *tmp_codec_string; if ((tmp_codec_string = strdup(codec_string))) { num_codecs = switch_separate_string(tmp_codec_string, ',', codec_order, SWITCH_MAX_CODECS);