Fix misplaced brackets inside ifs with assignment + comparison

This commit is contained in:
Tomasz Ostrowski 2022-11-27 22:06:09 +01:00 committed by GitHub
parent edd36639c7
commit cfe5c4fecc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -515,7 +515,7 @@ SWITCH_DECLARE(switch_status_t) switch_channel_queue_dtmf(switch_channel_t *chan
switch_set_flag((&new_dtmf), DTMF_FLAG_SENSITIVE); switch_set_flag((&new_dtmf), DTMF_FLAG_SENSITIVE);
} }
if ((status = switch_core_session_recv_dtmf(channel->session, dtmf) != SWITCH_STATUS_SUCCESS)) { if ((status = switch_core_session_recv_dtmf(channel->session, dtmf)) != SWITCH_STATUS_SUCCESS) {
goto done; goto done;
} }

View File

@ -4318,7 +4318,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_create_message_reply(switch_event_t *
{ {
switch_status_t status = SWITCH_STATUS_SUCCESS; switch_status_t status = SWITCH_STATUS_SUCCESS;
if ((status = switch_event_dup_reply(reply, message) != SWITCH_STATUS_SUCCESS)) { if ((status = switch_event_dup_reply(reply, message)) != SWITCH_STATUS_SUCCESS) {
abort(); abort();
} }