]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[mod_skinny] scan-build: Value stored to 'profile' is never read - channel_outgoing_c... 428/head
authorDragos Oancea <dragos@signalwire.com>
Tue, 25 Feb 2020 21:24:36 +0000 (21:24 +0000)
committerDragos Oancea <dragos@signalwire.com>
Tue, 25 Feb 2020 21:24:36 +0000 (21:24 +0000)
src/mod/endpoints/mod_skinny/mod_skinny.c

index 21fc7caf5c31e434995b946480cb7c5d63cdc74b..795fb09d96c7c9d4b7ebe040480e1cc18753f82d 100644 (file)
@@ -1350,7 +1350,6 @@ switch_call_cause_t channel_outgoing_channel(switch_core_session_t *session, swi
        }
        *dest++ = '\0';
 
-       profile = skinny_find_profile(profile_name);
        if (!(profile = skinny_find_profile(profile_name))) {
                switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_ERROR, "Invalid Profile %s\n", profile_name);
                cause = SWITCH_CAUSE_UNALLOCATED_NUMBER;