Skip to content

Commit

Permalink
Fix uninitialized variable
Browse files Browse the repository at this point in the history
  • Loading branch information
lochel committed Nov 17, 2020
1 parent 1377e71 commit dce060d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions common/Plugin/PluginImplementer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ int PluginImplementer::RegisteTLMInterface(std::string name , int dimensions,
causality[0] = std::tolower(causality[0],loc);
domain[0] = std::tolower(domain[0],loc);

omtlm_TLMInterface *ifc;
omtlm_TLMInterface *ifc = NULL;
if(dimensions==6) {
TLMErrorLog::Info("Registers TLM interface of type 3D");
ifc = new TLMInterface3D(ClientComm, name, StartTime, domain);
Expand Down Expand Up @@ -612,11 +612,11 @@ void PluginImplementer::SetMotion1D(int forceID,
if((*iter)->GetCausality() == "input") continue;
if(! (*iter)->waitForShutdown()) return;
}
#ifdef _MSC_VER
#ifdef _MSC_VER
WSACleanup(); // BZ306 fixed here
#else
// needed anything ?
#endif
#endif

InterfaceReadyForTakedown(ifc->GetName());
}
Expand Down Expand Up @@ -709,4 +709,3 @@ void PluginImplementer::GetParameterValue(int parameterID, std::string &Name, st
Name = pPar->GetName();
Value = pPar->GetValue();
}

0 comments on commit dce060d

Please sign in to comment.