]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[core] scan-build: Value stored to 'midstate' during its initialization is never... 273/head
authorDragos Oancea <dragos@signalwire.com>
Tue, 28 Jan 2020 23:52:07 +0000 (23:52 +0000)
committerDragos Oancea <dragos@signalwire.com>
Tue, 28 Jan 2020 23:52:07 +0000 (23:52 +0000)
src/switch_core_state_machine.c

index 01f200ddb45bc128b6f4364e4205dce3bf6fee19..22504fe722479e99144114e66e99b57b93046072 100644 (file)
@@ -868,7 +868,7 @@ SWITCH_DECLARE(void) switch_core_session_hangup_state(switch_core_session_t *ses
 
 SWITCH_DECLARE(void) switch_core_session_reporting_state(switch_core_session_t *session)
 {
-       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;