From 30f5c3b3017c7b98a315191ee8687a3faf1ded74 Mon Sep 17 00:00:00 2001 From: Ralph Lange Date: Tue, 9 Jun 2020 11:39:47 +0200 Subject: [PATCH] db: fix incomplete initialization in dbChannelOpen() (found by sonar/cppcheck) --- src/ioc/db/dbChannel.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/ioc/db/dbChannel.c b/src/ioc/db/dbChannel.c index 399d13dab..a6fd64450 100644 --- a/src/ioc/db/dbChannel.c +++ b/src/ioc/db/dbChannel.c @@ -38,6 +38,7 @@ #include "link.h" #include "recSup.h" #include "special.h" +#include "alarm.h" typedef struct parseContext { dbChannel *chan; @@ -619,6 +620,11 @@ long dbChannelOpen(dbChannel *chan) 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; /*