From: Dragos Oancea Date: Wed, 12 Feb 2020 21:37:19 +0000 (+0000) Subject: [core] scan-build: Value stored to 'midstate' during its initialization is never... X-Git-Tag: v1.10.3^2~167^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F343%2Fhead;p=thirdparty%2Ffreeswitch.git [core] scan-build: Value stored to 'midstate' during its initialization is never read - switch_core_session_hangup_state() --- diff --git a/src/switch_core_state_machine.c b/src/switch_core_state_machine.c index 22504fe722..57ba3bfeb2 100644 --- a/src/switch_core_state_machine.c +++ b/src/switch_core_state_machine.c @@ -803,7 +803,7 @@ SWITCH_DECLARE(void) switch_core_session_hangup_state(switch_core_session_t *ses int do_extra_handlers = 1; int silly = 0; int index = 0; - switch_channel_state_t state = switch_channel_get_state(session->channel), midstate = state; + switch_channel_state_t state = switch_channel_get_state(session->channel), midstate; const switch_endpoint_interface_t *endpoint_interface; const switch_state_handler_table_t *driver_state_handler = NULL; const switch_state_handler_table_t *application_state_handler = NULL;