From 9df17278d7cebdc5ed625b9e64370777fcf27cf7 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Tue, 18 Mar 2014 14:28:05 -0400 Subject: [PATCH] fix uninitialized variables --- src/mod/applications/mod_translate/mod_translate.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mod/applications/mod_translate/mod_translate.c b/src/mod/applications/mod_translate/mod_translate.c index 469d0ba2d3..58a5061f0c 100644 --- a/src/mod/applications/mod_translate/mod_translate.c +++ b/src/mod/applications/mod_translate/mod_translate.c @@ -179,7 +179,7 @@ static void do_unload(void) { switch_core_hash_this(hi, &key, &keylen, &val); switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "deleting translate profile [%s]\n", (char *) key); - for (nrl = val; rl;) { + for (rl = nrl = val; rl;) { rl = nrl; nrl = nrl->next; switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "deleting rule for [%s]\n", rl->regex); @@ -225,7 +225,7 @@ SWITCH_STANDARD_APP(translate_app_function) char *translated = NULL; switch_channel_t *channel = switch_core_session_get_channel(session); switch_memory_pool_t *pool; - switch_event_t *event; + switch_event_t *event = NULL; if (!(mydata = switch_core_session_strdup(session, data))) { goto end;