[commit] r12951 - freeswitch/trunk/src/mod/endpoints/mod_sofia
Author: mrene Date: Wed Apr 8 11:20:15 2009 New Revision: 12951 Log: tweak Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_glue.c Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_glue.c ============================================================================== --- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_glue.c (original) +++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_glue.c Wed Apr 8 11:20:15 2009 @@ -2395,7 +2395,7 @@ 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);
participants (1)
-
FreeSWITCH SVN