passing non-null value to generate_xml_cdr now implies its an initalized xml object

This commit is contained in:
Anthony Minessale committed 2010-07-01 15:22:13 -05:00
1 parent 21edf395ca
commit 3a6bb506c0
6 files changed
+12 -8

No files matched your search

@@ -2090,7 +2090,7 @@ static JSBool session_pre_answer(JSContext * cx, JSObject * obj, uintN argc, jsv
static JSBool session_cdr(JSContext * cx, JSObject * obj, uintN argc, jsval * argv, jsval * rval)
{
struct js_session *jss = JS_GetPrivate(cx, obj);
switch_xml_t cdr;
switch_xml_t cdr = NULL;
/*Always a pessimist... sheesh! */
*rval = BOOLEAN_TO_JSVAL(JS_FALSE);