Remove pointer checks for char arrays (can never be null)

This commit is contained in:
Hendi
2023-01-23 23:32:35 +01:00
committed by Thilo Graf
parent 9d7180bd17
commit b85ab2a4ab

View File

@@ -1728,8 +1728,7 @@ int CTimerList::modifyTimer()
); );
if (!modified && timer->eventType == CTimerd::TIMER_RECORD) if (!modified && timer->eventType == CTimerd::TIMER_RECORD)
{ {
if (timer->recordingDir && t_old.recordingDir) modified = strcmp(timer->recordingDir, t_old.recordingDir);
modified = strcmp(timer->recordingDir, t_old.recordingDir);
if (!modified) if (!modified)
modified = ( modified = (
t_old_apids_dflt != timer_apids_dflt t_old_apids_dflt != timer_apids_dflt