[Core] Coverity: 1024236 Dereference before null check

This commit is contained in:
Andrey Volk 2023-10-01 13:54:58 +03:00
parent 13fe1da46a
commit 4f48835575
1 changed files with 1 additions and 1 deletions

View File

@ -1305,7 +1305,7 @@ static switch_status_t setup_ringback(originate_global_t *oglobals, originate_st
}
}
if (oglobals->session && (read_codec = switch_core_session_get_read_codec(oglobals->session))) {
if ((read_codec = switch_core_session_get_read_codec(oglobals->session))) {
if (ringback_data && switch_is_file_path(ringback_data)) {
if (!(strrchr(ringback_data, '.') || strstr(ringback_data, SWITCH_URL_SEPARATOR))) {
ringback->asis++;