[mod_say_hr,hu,pl,sv] Fix dead nested assignments

This commit is contained in:
Andrey Volk
2022-01-12 14:37:56 +03:00
parent 1c83a92b7d
commit d38d83339d
4 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -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;
+1 -1
View File
@@ -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) {
+1 -1
View File
@@ -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) {
+1 -1
View File
@@ -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) {