FS-11903: Fix errors reported by PVS-Studio Static Code Analyzer for mod_say_en
This commit is contained in:
parent
cad56b3b4b
commit
85d963f666
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue