From cfe5c4feccad593176fe61bb19e582980851bfa0 Mon Sep 17 00:00:00 2001 From: Tomasz Ostrowski <43222462+tomek-o@users.noreply.github.com> Date: Sun, 27 Nov 2022 22:06:09 +0100 Subject: [PATCH] Fix misplaced brackets inside ifs with assignment + comparison --- src/switch_channel.c | 2 +- src/switch_ivr.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/switch_channel.c b/src/switch_channel.c index ea3f66c246..40682108a4 100644 --- a/src/switch_channel.c +++ b/src/switch_channel.c @@ -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); } - 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; } diff --git a/src/switch_ivr.c b/src/switch_ivr.c index 77d957fb7c..5b050da78c 100644 --- a/src/switch_ivr.c +++ b/src/switch_ivr.c @@ -4318,7 +4318,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_create_message_reply(switch_event_t * { 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(); }