Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zabbix/zabbix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Vladishev <aleksander.vladishev@zabbix.com>2022-02-19 11:30:56 +0300
committerAlexander Vladishev <aleksander.vladishev@zabbix.com>2022-02-19 11:32:50 +0300
commitbb986d2aff2a4b3ef2e7fad96b998ee4ac2b01be (patch)
treeb5dd65d85a95ba7d83da4cccbf3af04149a9bce7
parentca5432c5e2b0719221351687bc256c6b897d9b8f (diff)
.......PS. [ZBXNEXT-1891] fixed duplicateConditionalAssign cppcheck warning
(cherry picked from commit c7e783f0aba3b740ec3fcb69306b67f0a7afe5a1) (cherry picked from commit 9dee1a607d56ab03f86105a2dbc939723cca956f)
-rw-r--r--src/libs/zbxdbcache/dbconfig.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libs/zbxdbcache/dbconfig.c b/src/libs/zbxdbcache/dbconfig.c
index ddf1d565c35..4c768dc1630 100644
--- a/src/libs/zbxdbcache/dbconfig.c
+++ b/src/libs/zbxdbcache/dbconfig.c
@@ -13731,8 +13731,7 @@ void zbx_dc_update_proxy(zbx_proxy_diff_t *diff)
ps_win->period_end = ds_win->period_end;
}
- if (ps_win->flags != ds_win->flags)
- ps_win->flags = ds_win->flags;
+ ps_win->flags = ds_win->flags;
if (0 > ps_win->values_num) /* some new values was processed faster than old */
ps_win->values_num = 0; /* we will suppress more */