Opened 9 years ago

Closed 4 years ago

#3595 closed defect (wontfix)

Dereference of uninitialized value in fmiInstantiateModel

Reported by: michael.kobierski@… Owned by: Adeel Asghar
Priority: normal Milestone: never
Component: FMI Version:
Keywords: Cc:

Description

From d464003b7dd598049460f3e31d9b5fd8cf303768 Mon Sep 17 00:00:00 2001
From: MichaelKobierski-OPALRT <michael.kobierski@opal-rt.com>
Date: Mon, 14 Dec 2015 10:43:34 -0500
Subject: [PATCH] Bug fix - dereference of uninitialized value in
 fmiInstantiateModel

---
 SimulationRuntime/fmi/export/fmi1/fmu1_model_interface.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/SimulationRuntime/fmi/export/fmi1/fmu1_model_interface.c b/SimulationRuntime/fmi/export/fmi1/fmu1_model_interface.c
index e140419..534f56d 100644
--- a/SimulationRuntime/fmi/export/fmi1/fmu1_model_interface.c
+++ b/SimulationRuntime/fmi/export/fmi1/fmu1_model_interface.c
@@ -168,7 +168,7 @@ fmiComponent fmiInstantiateModel(fmiString instanceName, fmiString GUID, fmiCall
     functions.logger(NULL, instanceName, fmiError, "error", "fmiInstantiateModel: Out of memory.");
     return NULL;
   }
-  if (comp->loggingOn) comp->functions.logger(NULL, instanceName, fmiOK, "log",
+  if (loggingOn) functions.logger(NULL, instanceName, fmiOK, "log",
       "fmiInstantiateModel: GUID=%s", GUID);
   /* intialize modelData */
   fmu1_model_interface_setupDataStruc(comp->fmuData);
--


Change History (1)

comment:1 by Per Östlund, 4 years ago

Milestone: Futurenever
Resolution: wontfix
Status: newclosed

It seems that file no longer exists in our repo, so I guess this is no longer relevant.

Note: See TracTickets for help on using tickets.