mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-07-13 18:47:44 +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;
|
struct pcre_obj *pcre_obj;
|
||||||
|
|
||||||
if ((pcre_obj = malloc(sizeof(*pcre_obj)))) {
|
if (!((pcre_obj = malloc(sizeof(*pcre_obj))))) {
|
||||||
memset(pcre_obj, 0, sizeof(*pcre_obj));
|
abort();
|
||||||
JS_SetPrivate(cx, obj, pcre_obj);
|
|
||||||
return JS_TRUE;
|
|
||||||
}
|
}
|
||||||
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