mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-14 13:28:31 +00:00
remove unnecessary null check, we would have crashed already if that strdup failed
This commit is contained in:
1 parent
5c07c3eb03
commit
dbaf49926c
17 files changed
+19
-53
No files matched your search
@@ -242,9 +242,7 @@ static switch_status_t fa_say_time(switch_core_session_t *session, char *tosay,
|
||||
if ((p = strchr(tme, ':'))) {
|
||||
*p++ = '\0';
|
||||
minutes = atoi(p);
|
||||
if (tme) {
|
||||
hours = atoi(tme);
|
||||
}
|
||||
hours = atoi(tme);
|
||||
} else {
|
||||
minutes = atoi(tme);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user