silence windows warning

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5702 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris 2007-09-11 23:49:28 +00:00
parent 815f34fbfb
commit 07aebb5ab9

View File

@ -341,12 +341,12 @@ static JSBool pcre_construct(JSContext * cx, JSObject * obj, uintN argc, jsval *
{
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;
}