FS-11903: Fix errors reported by PVS-Studio Static Code Analyzer for mod_say_en

This commit is contained in:
Andrey Volk 2019-07-12 20:13:06 +04:00
parent cad56b3b4b
commit 85d963f666
1 changed files with 1 additions and 5 deletions

View File

@ -202,7 +202,7 @@ static switch_status_t en_say_time(switch_say_file_handle_t *sh, char *tosay, sw
if (strchr(tosay, ':')) {
char *tme = strdup(tosay);
char *p;
switch_assert(tme);
if ((p = strrchr(tme, ':'))) {
*p++ = '\0';
seconds = atoi(p);
@ -343,10 +343,6 @@ static switch_status_t en_say_time(switch_say_file_handle_t *sh, char *tosay, sw
say_dow = 1;
break;
}
if (tm.tm_mon != tm_now.tm_mon) {
say_month = say_day = say_dow = 1;
break;
}
say_month = say_day = say_dow = 1;