1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

node-iec61850: fix undefined behaviour

Signed-off-by: Philipp Jungkamp <philipp.jungkamp@rwth-aachen.de>
This commit is contained in:
Philipp Jungkamp 2023-04-18 13:52:24 +00:00
parent fff889d779
commit 0ee9ab6be0

View file

@ -783,7 +783,7 @@ void GooseNode::parsePublisherData(json_t *json, std::vector<OutputData> &data)
std::optional<GooseSignal::Meta> meta = std::nullopt;
if (goose_type->mms_type == MmsType::MMS_BIT_STRING && bitstring_size != -1)
meta->size = bitstring_size;
meta = {.size = bitstring_size};
auto signal_data = SignalData {};