Skip to content

Commit

Permalink
Fix some uninitialized variable uses. (#10517)
Browse files Browse the repository at this point in the history
  - These variables were being accessed at runtime without being intialized.
  • Loading branch information
mahge committed Apr 7, 2023
1 parent 160a289 commit 1fdd349
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion OMCompiler/Compiler/Util/BaseHashSet.mo
Expand Up @@ -347,7 +347,7 @@ protected function get2
input Key key;
input list<tuple<Key,Integer>> keyIndices;
input FuncEq keyEqual;
output Integer index;
output Integer index = -1;
output Boolean found = true;
protected
Key key2;
Expand Down
4 changes: 2 additions & 2 deletions OMCompiler/Compiler/runtime/matching.c
Expand Up @@ -1246,8 +1246,8 @@ void match_pr_fifo_fair(int* col_ptrs, int* col_ids, int* row_ptrs, int* row_ids
}

void matching(int* col_ptrs, int* col_ids, int* match, int* row_match, int n, int m, int matching_id, int cheap_id, double relabel_period, int clear_match) {
int* row_ptrs;
int* row_ids;
int* row_ptrs = NULL;
int* row_ids = NULL;
int i;

if (clear_match==1)
Expand Down

0 comments on commit 1fdd349

Please sign in to comment.