From: Andrey Volk Date: Fri, 12 Jul 2019 16:46:33 +0000 (+0400) Subject: FS-11903: Fix errors reported by PVS-Studio Static Code Analyzer for switch_time.c X-Git-Tag: v1.10.0~238 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0d73ca2f5110396feb1114304cd6fcf42961c1a3;p=thirdparty%2Ffreeswitch.git FS-11903: Fix errors reported by PVS-Studio Static Code Analyzer for switch_time.c --- diff --git a/src/switch_time.c b/src/switch_time.c index a90d1a863e..46a3a08712 100644 --- a/src/switch_time.c +++ b/src/switch_time.c @@ -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; }