[Freeswitch-svn] [commit] r9318 - freeswitch/trunk/src/mod/languages/mod_spidermonkey_odbc

Freeswitch SVN robertj at freeswitch.org
Mon Aug 18 08:23:57 EDT 2008


Author: robertj
Date: Mon Aug 18 08:23:56 2008
New Revision: 9318

Modified:
   freeswitch/trunk/src/mod/languages/mod_spidermonkey_odbc/mod_spidermonkey_odbc.c

Log:
Fixed compiler warning ... potential uninitialised variable.

Modified: freeswitch/trunk/src/mod/languages/mod_spidermonkey_odbc/mod_spidermonkey_odbc.c
==============================================================================
--- freeswitch/trunk/src/mod/languages/mod_spidermonkey_odbc/mod_spidermonkey_odbc.c	(original)
+++ freeswitch/trunk/src/mod/languages/mod_spidermonkey_odbc/mod_spidermonkey_odbc.c	Mon Aug 18 08:23:56 2008
@@ -260,7 +260,7 @@
 static JSBool odbc_num_rows(JSContext * cx, JSObject * obj, uintN argc, jsval * argv, jsval * rval)
 {
 	odbc_obj_t *odbc_obj = (odbc_obj_t *) JS_GetPrivate(cx, obj);
-	SQLLEN row_count;
+	SQLLEN row_count = 0;
 	
 	if (!odbc_obj || switch_odbc_handle_get_state(odbc_obj->handle) != SWITCH_ODBC_STATE_CONNECTED) {
 		switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Database is not connected!\n");



More information about the Freeswitch-svn mailing list