FS-11903: Fix errors reported by PVS-Studio Static Code Analyzer for switch_time.c

This commit is contained in:
Andrey Volk 2019-07-12 20:46:33 +04:00
parent b765bd46b5
commit 0d73ca2f51

View File

@ -431,7 +431,7 @@ static switch_status_t timerfd_start_interval(interval_timer_t *it, int interval
return SWITCH_STATUS_GENERR;
}
if ((r = read(fd, &exp, sizeof(exp)) < 0)) {
if ((r = read(fd, &exp, sizeof(exp))) < 0) {
close(fd);
return SWITCH_STATUS_GENERR;
}