Author: anthm Date: Thu Apr 9 16:17:52 2009 New Revision: 12973 Log: add more specific checks to new macro just to be safe Modified: freeswitch/trunk/src/include/switch_loadable_module.h Modified: freeswitch/trunk/src/include/switch_loadable_module.h ============================================================================== --- freeswitch/trunk/src/include/switch_loadable_module.h (original) +++ freeswitch/trunk/src/include/switch_loadable_module.h Thu Apr 9 16:17:52 2009 @@ -430,7 +430,7 @@ static inline switch_bool_t switch_core_codec_ready(switch_codec_t *codec) { - return (codec->flags & SWITCH_CODEC_FLAG_READY) ? SWITCH_TRUE : SWITCH_FALSE; + return (codec && codec->implementation && (codec->flags & SWITCH_CODEC_FLAG_READY)) ? SWITCH_TRUE : SWITCH_FALSE; }
participants (1)
-
FreeSWITCH SVN