From cfdd6895f3b3e37ee4b2a0c7dc8ab043f1bb8c6b Mon Sep 17 00:00:00 2001 From: Alireza Mohammadi Date: Mon, 9 Jan 2023 10:37:25 +0330 Subject: [PATCH] Check if initializer callback is not NULL --- src/iec61850/server/impl/ied_server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/iec61850/server/impl/ied_server.c b/src/iec61850/server/impl/ied_server.c index f09e42b28..f183930c3 100644 --- a/src/iec61850/server/impl/ied_server.c +++ b/src/iec61850/server/impl/ied_server.c @@ -535,7 +535,7 @@ IedServer_createWithConfig(IedModel* dataModel, TLSConfiguration tlsConfiguratio createMmsServerCache(self); - dataModel->initializer(); + if (dataModel->initializer) dataModel->initializer(); installDefaultValuesInCache(self); /* This will also connect cached MmsValues to DataAttributes */