remove unnecessary null check, we would have crashed already if that strdup failed

This commit is contained in:
Michael Jerris committed 2014-04-28 14:38:38 -04:00
1 parent 5c07c3eb03
commit dbaf49926c
17 files changed
+19 -53

No files matched your search

+1 -3
View File
@@ -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);
}