fix and ooops

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5661 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Ken Rice 2007-08-23 18:34:50 +00:00
parent b6256a4fc8
commit 32e44d9a1a
1 changed files with 1 additions and 7 deletions

View File

@ -1269,13 +1269,7 @@ static JSBool session_sayphrase(JSContext * cx, JSObject * obj, uintN argc, jsva
if (argc > 1) {
tmp = JS_GetStringBytes(JS_ValueToString(cx, argv[1]));
if (!switch_strlen_zero(tmp)) {
phrase_data = tmp;
} else {
*rval = BOOLEAN_TO_JSVAL(JS_FALSE);
return JS_TRUE;
}
phrase_data = JS_GetStringBytes(JS_ValueToString(cx, argv[1]));
}
if (argc > 2) {