fix MODLANG-42

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6035 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2007-10-23 19:02:47 +00:00
parent 7056f21fec
commit 8cf22e707d
1 changed files with 1 additions and 1 deletions

View File

@ -2908,7 +2908,7 @@ static JSBool js_include(JSContext * cx, JSObject * obj, uintN argc, jsval * arg
{ {
char *code; char *code;
if (argc > 0 && (code = JS_GetStringBytes(JS_ValueToString(cx, argv[0])))) { if (argc > 0 && (code = JS_GetStringBytes(JS_ValueToString(cx, argv[0])))) {
if (eval_some_js(code, cx, obj, rval) < 0) { if (eval_some_js(code, cx, obj, rval) <= 0) {
return JS_FALSE; return JS_FALSE;
} }
return JS_TRUE; return JS_TRUE;