fix windows build - uninited variable

This commit is contained in:
Jeff Lenk 2010-07-22 10:31:12 -05:00
parent 84d897cb05
commit ffab09a03c
1 changed files with 2 additions and 2 deletions

View File

@ -494,7 +494,7 @@ SWITCH_DECLARE(void) switch_core_session_hangup_state(switch_core_session_t *ses
const switch_state_handler_table_t *driver_state_handler = NULL;
const switch_state_handler_table_t *application_state_handler = NULL;
const char *hook_var;
int use_session;
int use_session = 0;
if (!force) {
if (!switch_channel_test_flag(session->channel, CF_EARLY_HANGUP) && !switch_test_flag((&runtime), SCF_EARLY_HANGUP)) {
@ -560,7 +560,7 @@ SWITCH_DECLARE(void) switch_core_session_reporting_state(switch_core_session_t *
int index = 0;
const char *var = switch_channel_get_variable(session->channel, SWITCH_PROCESS_CDR_VARIABLE);
const char *hook_var;
int use_session;
int use_session = 0;
switch_event_t *event;
switch_call_cause_t cause = switch_channel_get_cause(session->channel);