fix uninitialized variables
This commit is contained in:
parent
bf4339712a
commit
9df17278d7
|
@ -179,7 +179,7 @@ static void do_unload(void) {
|
||||||
switch_core_hash_this(hi, &key, &keylen, &val);
|
switch_core_hash_this(hi, &key, &keylen, &val);
|
||||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "deleting translate profile [%s]\n", (char *) key);
|
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;
|
rl = nrl;
|
||||||
nrl = nrl->next;
|
nrl = nrl->next;
|
||||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "deleting rule for [%s]\n", rl->regex);
|
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;
|
char *translated = NULL;
|
||||||
switch_channel_t *channel = switch_core_session_get_channel(session);
|
switch_channel_t *channel = switch_core_session_get_channel(session);
|
||||||
switch_memory_pool_t *pool;
|
switch_memory_pool_t *pool;
|
||||||
switch_event_t *event;
|
switch_event_t *event = NULL;
|
||||||
|
|
||||||
if (!(mydata = switch_core_session_strdup(session, data))) {
|
if (!(mydata = switch_core_session_strdup(session, data))) {
|
||||||
goto end;
|
goto end;
|
||||||
|
|
Loading…
Reference in New Issue