]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-11903: Fix errors reported by PVS-Studio Static Code Analyzer for switch_time.c
authorAndrey Volk <andywolk@gmail.com>
Fri, 12 Jul 2019 16:46:33 +0000 (20:46 +0400)
committerAndrey Volk <andywolk@gmail.com>
Mon, 15 Jul 2019 19:45:36 +0000 (23:45 +0400)
src/switch_time.c

index a90d1a863e7b2e2a82903d9e55df59c74e14f86e..46a3a087120c7cc9538a5fd3863d7b107c805a0b 100644 (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;
        }