[Freeswitch-svn] [commit] r10851 - freeswitch/trunk/src/mod/languages/mod_spidermonkey
FreeSWITCH SVN
anthm at freeswitch.org
Wed Dec 17 07:35:41 PST 2008
Author: anthm
Date: Wed Dec 17 10:35:40 2008
New Revision: 10851
Log:
fix seg in js
Modified:
freeswitch/trunk/src/mod/languages/mod_spidermonkey/mod_spidermonkey.c
Modified: freeswitch/trunk/src/mod/languages/mod_spidermonkey/mod_spidermonkey.c
==============================================================================
--- freeswitch/trunk/src/mod/languages/mod_spidermonkey/mod_spidermonkey.c (original)
+++ freeswitch/trunk/src/mod/languages/mod_spidermonkey/mod_spidermonkey.c Wed Dec 17 10:35:40 2008
@@ -1778,6 +1778,8 @@
struct js_session *jss = JS_GetPrivate(cx, obj);
switch_channel_t *channel;
+ METHOD_SANITY_CHECK();
+
channel = switch_core_session_get_channel(jss->session);
if (argc > 1) {
@@ -1799,10 +1801,7 @@
struct js_session *jss = JS_GetPrivate(cx, obj);
switch_channel_t *channel;
- if (!jss || !jss->session) {
- *rval = BOOLEAN_TO_JSVAL(JS_FALSE);
- return JS_TRUE;
- }
+ METHOD_SANITY_CHECK();
channel = switch_core_session_get_channel(jss->session);
More information about the Freeswitch-svn
mailing list