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) {