Modified: freeswitch/trunk/src/mod/languages/mod_spidermonkey_core_db/mod_spidermonkey_core_db.c (15633 => 15634)
--- freeswitch/trunk/src/mod/languages/mod_spidermonkey_core_db/mod_spidermonkey_core_db.c 2009-11-23 22:15:26 UTC (rev 15633)
+++ freeswitch/trunk/src/mod/languages/mod_spidermonkey_core_db/mod_spidermonkey_core_db.c 2009-11-23 22:21:22 UTC (rev 15634)
@@ -288,6 +288,8 @@
{
struct db_obj *dbo = JS_GetPrivate(cx, obj);
JSBool status;
+ uint32 param_index = -1;
+ char *param_value = NULL;
*rval = BOOLEAN_TO_JSVAL(JS_FALSE);
@@ -307,8 +309,6 @@
return JS_FALSE;
}
- uint32 param_index = -1;
- char *param_value = NULL;
/* convert args */
@@ -334,6 +334,8 @@
{
struct db_obj *dbo = JS_GetPrivate(cx, obj);
JSBool status;
+ uint32 param_index = -1;
+ uint32 param_value = -1;
*rval = BOOLEAN_TO_JSVAL(JS_FALSE);
@@ -353,10 +355,6 @@
return JS_FALSE;
}
- uint32 param_index = -1;
- uint32 param_value = -1;
-
-
/* convert args */
status = JS_ValueToECMAUint32(cx, argv[0], ¶m_index);
switch_assert(status == JS_TRUE);