[Freeswitch-svn] [commit] r6508 - freeswitch/trunk/src

Freeswitch SVN anthm at freeswitch.org
Tue Dec 4 18:16:43 EST 2007


Author: anthm
Date: Tue Dec  4 18:16:43 2007
New Revision: 6508

Modified:
   freeswitch/trunk/src/switch_core_db.c

Log:
add retry on lock to core sql func

Modified: freeswitch/trunk/src/switch_core_db.c
==============================================================================
--- freeswitch/trunk/src/switch_core_db.c	(original)
+++ freeswitch/trunk/src/switch_core_db.c	Tue Dec  4 18:16:43 2007
@@ -79,7 +79,7 @@
 
 SWITCH_DECLARE(int) switch_core_db_exec(switch_core_db_t *db, const char *sql, switch_core_db_callback_func_t callback, void *data, char **errmsg)
 {
-	int ret;
+	int ret = 0;
 	int sane = 100;
 
 	while(--sane > 0) {



More information about the Freeswitch-svn mailing list