From 059d32a975a67093dbc9a6359ef6a765c8659da8 Mon Sep 17 00:00:00 2001 From: Ralph Lange Date: Thu, 25 May 2023 15:30:28 +0200 Subject: [PATCH] db: init struct members in dbChannel.c found by static code analysis (cppcheck @ sonarqube) --- modules/database/src/ioc/db/dbChannel.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/modules/database/src/ioc/db/dbChannel.c b/modules/database/src/ioc/db/dbChannel.c index a806f3cfa..fd682c93e 100644 --- a/modules/database/src/ioc/db/dbChannel.c +++ b/modules/database/src/ioc/db/dbChannel.c @@ -575,15 +575,10 @@ long dbChannelOpen(dbChannel *chan) } /* Set up type probe */ - probe.type = dbfl_type_val; - probe.ctx = dbfl_context_read; + memset(&probe, 0, sizeof(probe)); probe.field_type = dbChannelExportType(chan); probe.no_elements = dbChannelElements(chan); probe.field_size = dbChannelFieldSize(chan); - probe.sevr = NO_ALARM; - probe.stat = NO_ALARM; - probe.time.secPastEpoch = 0; - probe.time.nsec = 0; p = probe;