mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-02-09 17:26:03 +00:00
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, ':')) {
|
if (strchr(tosay, ':')) {
|
||||||
char *tme = strdup(tosay);
|
char *tme = strdup(tosay);
|
||||||
char *p;
|
char *p;
|
||||||
|
switch_assert(tme);
|
||||||
if ((p = strrchr(tme, ':'))) {
|
if ((p = strrchr(tme, ':'))) {
|
||||||
*p++ = '\0';
|
*p++ = '\0';
|
||||||
seconds = atoi(p);
|
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;
|
say_dow = 1;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (tm.tm_mon != tm_now.tm_mon) {
|
|
||||||
say_month = say_day = say_dow = 1;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
say_month = say_day = say_dow = 1;
|
say_month = say_day = say_dow = 1;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user