db: fix incomplete initialization in dbChannelOpen()

(found by sonar/cppcheck)
This commit is contained in:
Ralph Lange
2020-06-09 11:39:47 +02:00
parent 69d4c238e7
commit 30f5c3b301

View File

@@ -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;
/*