Skip to content

Commit

Permalink
Fix uninitialized parameter in resolveLoops_findLoops (#10315)
Browse files Browse the repository at this point in the history
- Give the output parameter `optStructureMapping` a default value, to
  avoid it potentially being returned uninitialized.
  • Loading branch information
perost committed Mar 3, 2023
1 parent 6be337e commit 51396b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OMCompiler/Compiler/BackEnd/ResolveLoops.mo
Expand Up @@ -370,7 +370,7 @@ public function resolveLoops_findLoops "author:Waurich TUD 2014-02
output list<list<Integer>> loopsOut = {};
output list<Integer> crossEqsOut = {};
output list<Integer> crossVarsOut = {};
output Option<tuple<list<Integer>,BackendDAE.AdjacencyMatrix,list<list<Integer>>>> optStructureMapping;
output Option<tuple<list<Integer>,BackendDAE.AdjacencyMatrix,list<list<Integer>>>> optStructureMapping = NONE();
protected
list<list<Integer>> loops, eqVars;
list<Integer> eqCrossLst, varCrossLst, partitionVars;
Expand Down

0 comments on commit 51396b3

Please sign in to comment.