@cryptotaxi247 / netdata-1 / commits / a0f79da6b

Fix coverity issue (#21777)

Properly init found variable

Stelios Fragkakis committed Feb 19, 2026 at 10:30 UTC a0f79da6b436dfdb3e7d337a3ae93b23dee48b6f
1 file changed +2 -1
src/database/sqlite/sqlite_aclk_alert.c
+2 -1
@@ -777,10 +777,11 @@ bool alert_hash_has_transitioned(nd_uuid_t *hash_id)
777 }
778
779 int param = 0;
780 + bool found = true;
781 SQLITE_BIND_FAIL(done, sqlite3_bind_blob(res, ++param, hash_id, sizeof(*hash_id), SQLITE_STATIC));
782
783 param = 0;
783 - bool found = (sqlite3_step_monitored(res) == SQLITE_ROW);
784 + found = (sqlite3_step_monitored(res) == SQLITE_ROW);
785
786 done:
787 REPORT_BIND_FAIL(res, param);