From 552fd37e1cc8f01f61389cfbc94ee5a34fa0d2f2 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Tue, 4 Dec 2007 23:16:43 +0000 Subject: [PATCH] add retry on lock to core sql func git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6508 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/switch_core_db.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/switch_core_db.c b/src/switch_core_db.c index 6ecee68c25..8dd2bca339 100644 --- a/src/switch_core_db.c +++ b/src/switch_core_db.c @@ -79,7 +79,7 @@ SWITCH_DECLARE(const char *) switch_core_db_errmsg(switch_core_db_t *db) 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) {