[mod_say_xx] Fix multiple dead assignments

This commit is contained in:
Andrey Volk 2020-02-25 23:53:45 +04:00
parent 42d3100609
commit d63676405f
6 changed files with 1 additions and 10 deletions

View File

@ -752,7 +752,6 @@ 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_today = say_yesterday = 0;
}
if (say_day) {

View File

@ -326,7 +326,6 @@ 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_today = say_yesterday = 0;
}
if (say_year) {

View File

@ -188,7 +188,7 @@ static switch_status_t nl_say_time(switch_core_session_t *session, char *tosay,
if (say_args->type == SST_TIME_MEASUREMENT) {
int64_t hours = 0;
int64_t minutes = 0;
int64_t seconds = 0;
int64_t seconds;
int64_t r = 0;
if (strchr(tosay, ':')) {
@ -197,7 +197,6 @@ static switch_status_t nl_say_time(switch_core_session_t *session, char *tosay,
if ((p = strrchr(tme, ':'))) {
*p++ = '\0';
seconds = atoi(p);
if ((p = strchr(tme, ':'))) {
*p++ = '\0';
minutes = atoi(p);
@ -215,8 +214,6 @@ static switch_status_t nl_say_time(switch_core_session_t *session, char *tosay,
if (seconds >= 60) {
minutes = seconds / 60;
r = seconds % 60;
seconds = r;
}
if (minutes >= 60) {

View File

@ -385,7 +385,6 @@ 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_today = say_yesterday = 0;
}
if (say_day) {

View File

@ -381,7 +381,6 @@ static switch_status_t ru_say_time(switch_say_file_handle_t *sh, char *tosay, sw
if (seconds >= 60) {
minutes = seconds / 60;
r = seconds % 60;
}
if (minutes >= 60) {
@ -503,7 +502,6 @@ static switch_status_t ru_say_time(switch_say_file_handle_t *sh, char *tosay, sw
}
if (say_date) {
say_year = say_month = say_day = say_dow = 1;
say_today = say_yesterday = 0;
}
if (say_day) {
switch_snprintf(buf, sizeof(buf), "%u", (unsigned) tm.tm_mday);

View File

@ -416,7 +416,6 @@ 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_today = say_yesterday = 0;
}
if (say_month) {