From: Anthony Minessale Date: Thu, 8 Nov 2007 00:50:10 +0000 (+0000) Subject: add assert X-Git-Tag: v1.0-beta2~193 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ce21d41785df9f7e8e0639d7e7f31cb3db755165;p=thirdparty%2Ffreeswitch.git add assert git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6182 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/switch_core_io.c b/src/switch_core_io.c index 229580f4b4..8006663a07 100644 --- a/src/switch_core_io.c +++ b/src/switch_core_io.c @@ -136,6 +136,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_read_frame(switch_core_sessi goto done; } + assert((*frame)->codec != NULL); if ((session->read_codec && (*frame)->codec && session->read_codec->implementation != (*frame)->codec->implementation)) { need_codec = TRUE; }