mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-29 22:54:18 +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:
1 parent
815f34fbfb
commit
07aebb5ab9
1 file changed
+5
-5
@@ -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;
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user