fix paramater checking on switch_ivr_phrase_macro and it's consumers.

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4187 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris committed 2007-02-09 22:55:48 +00:00
1 parent d41b3e14dc
commit 712976653d
3 files changed
+18 -3

No files matched your search

@@ -1029,8 +1029,11 @@ static JSBool session_sayphrase(JSContext *cx, JSObject *obj, uintN argc, jsval
if (switch_strlen_zero(phrase_name)) {
return JS_FALSE;
}
} else {
return JS_FALSE;
}
if (argc > 1) {
phrase_data = JS_GetStringBytes(JS_ValueToString(cx, argv[1]));
}