mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-13 20:50:41 +00:00
silence windows warning
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5702 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
815f34fbfb
commit
07aebb5ab9
@ -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;
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user