- IEC 61850 server: fixed some variable initialization issues caused by recent changes

pull/269/head
Michael Zillgith 5 years ago
parent e9d9bfbac2
commit fa01d3f3dc

@ -3148,6 +3148,7 @@ MmsMapping_createDataSetByNamedVariableList(MmsMapping* self, MmsNamedVariableLi
dataSetEntry->index = listEntry->arrayIndex; dataSetEntry->index = listEntry->arrayIndex;
dataSetEntry->componentName = listEntry->componentName; dataSetEntry->componentName = listEntry->componentName;
dataSetEntry->sibling = NULL; dataSetEntry->sibling = NULL;
dataSetEntry->value = NULL;
if (lastDataSetEntry == NULL) if (lastDataSetEntry == NULL)
dataSet->fcdas =dataSetEntry; dataSet->fcdas =dataSetEntry;

@ -2284,7 +2284,7 @@ sendNextReportEntrySegment(ReportControl* self)
MmsValue rptId; MmsValue rptId;
rptId.type = MMS_VISIBLE_STRING; rptId.type = MMS_VISIBLE_STRING;
rptId.value.visibleString.size = sizeof(rptIdBuf); rptId.value.visibleString.size = sizeof(rptIdBuf) - 1;
rptId.value.visibleString.buf = rptIdBuf; rptId.value.visibleString.buf = rptIdBuf;
MmsValue* rptIdFromRcb = ReportControl_getRCBValue(self, "RptID"); MmsValue* rptIdFromRcb = ReportControl_getRCBValue(self, "RptID");

Loading…
Cancel
Save