[Freeswitch-svn] [commit] r5702 - freeswitch/trunk/src/mod/languages/mod_spidermonkey
Freeswitch SVN
mikej at freeswitch.org
Tue Sep 11 19:49:28 EDT 2007
Author: mikej
Date: Tue Sep 11 19:49:28 2007
New Revision: 5702
Modified:
freeswitch/trunk/src/mod/languages/mod_spidermonkey/mod_spidermonkey.c
Log:
silence windows warning
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 Tue Sep 11 19:49:28 2007
@@ -341,12 +341,12 @@
{
struct pcre_obj *pcre_obj;
- if ((pcre_obj = malloc(sizeof(*pcre_obj)))) {
- memset(pcre_obj, 0, sizeof(*pcre_obj));
- JS_SetPrivate(cx, obj, pcre_obj);
- return JS_TRUE;
+ if (!((pcre_obj = malloc(sizeof(*pcre_obj))))) {
+ abort();
}
- abort();
+ memset(pcre_obj, 0, sizeof(*pcre_obj));
+ JS_SetPrivate(cx, obj, pcre_obj);
+ return JS_TRUE;
}
More information about the Freeswitch-svn
mailing list