From d38d83339dff4988dcdc89a6f21883b0436604d0 Mon Sep 17 00:00:00 2001 From: Andrey Volk Date: Wed, 12 Jan 2022 14:37:56 +0300 Subject: [PATCH] [mod_say_hr,hu,pl,sv] Fix dead nested assignments --- src/mod/say/mod_say_hr/mod_say_hr.c | 4 ++-- src/mod/say/mod_say_hu/mod_say_hu.c | 2 +- src/mod/say/mod_say_pl/mod_say_pl.c | 2 +- src/mod/say/mod_say_sv/mod_say_sv.c | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/mod/say/mod_say_hr/mod_say_hr.c b/src/mod/say/mod_say_hr/mod_say_hr.c index f996c7424d..20582c01d4 100644 --- a/src/mod/say/mod_say_hr/mod_say_hr.c +++ b/src/mod/say/mod_say_hr/mod_say_hr.c @@ -751,7 +751,7 @@ static switch_status_t hr_say_time(switch_core_session_t *session, char *tosay, } if (say_date) { - say_year = say_month = say_day = say_dow = 1; + say_year = say_month = say_day = 1; } if (say_day) { @@ -1018,7 +1018,7 @@ static switch_status_t hr_say_money(switch_core_session_t *session, char *tosay, int zadnja_lipa = 0; int predzadnja_lipa = 0; - if (strlen(tosay) > 15 || !(tosay = strip_nonnumerics(tosay, sbuf, sizeof(sbuf)-1))) + if (strlen(tosay) > 15 || !strip_nonnumerics(tosay, sbuf, sizeof(sbuf)-1)) { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Parse Error!\n"); return SWITCH_STATUS_GENERR; diff --git a/src/mod/say/mod_say_hu/mod_say_hu.c b/src/mod/say/mod_say_hu/mod_say_hu.c index 839fe47421..f49716fc20 100644 --- a/src/mod/say/mod_say_hu/mod_say_hu.c +++ b/src/mod/say/mod_say_hu/mod_say_hu.c @@ -325,7 +325,7 @@ static switch_status_t hu_say_time(switch_core_session_t *session, char *tosay, } if (say_date) { - say_year = say_month = say_day = say_dow = 1; + say_year = say_month = say_day = 1; } if (say_year) { diff --git a/src/mod/say/mod_say_pl/mod_say_pl.c b/src/mod/say/mod_say_pl/mod_say_pl.c index 4030b96391..35e2adb608 100644 --- a/src/mod/say/mod_say_pl/mod_say_pl.c +++ b/src/mod/say/mod_say_pl/mod_say_pl.c @@ -385,7 +385,7 @@ static switch_status_t pl_say_time(switch_say_file_handle_t *sh, char *tosay, sw } if (say_date) { - say_year = say_month = say_day = say_dow = 1; + say_year = say_month = say_day = 1; } if (say_day) { diff --git a/src/mod/say/mod_say_sv/mod_say_sv.c b/src/mod/say/mod_say_sv/mod_say_sv.c index d495ac91f3..c1d1b63678 100644 --- a/src/mod/say/mod_say_sv/mod_say_sv.c +++ b/src/mod/say/mod_say_sv/mod_say_sv.c @@ -429,7 +429,7 @@ static switch_status_t sv_say_time(switch_say_file_handle_t *sh, char *tosay, sw } if (say_date) { - say_year = say_month = say_day = say_dow = 1; + say_year = say_month = say_day = 1; } if (say_month) {