Merge pull request #428 from dragos-oancea/mod_skinny-val-never-read

[mod_skinny] scan-build: Value stored to 'profile' is never read - channel_outgoing_channel()
This commit is contained in:
Andrey Volk 2020-02-26 23:46:49 +04:00 committed by GitHub
commit 815f26ec15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View 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;