Skip to content

Commit

Permalink
fix segfault when no progress flag set
Browse files Browse the repository at this point in the history
  • Loading branch information
nsmlzl committed Nov 28, 2022
1 parent fbfacd9 commit ab425e2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/algorithms/path_sgd_layout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,9 @@ namespace odgi {
term_updates_local++;
if (term_updates_local >= 1000) {
term_updates += term_updates_local;
progress_meter->increment(term_updates_local);
if (progress) {
progress_meter->increment(term_updates_local);
}
term_updates_local = 0;
}
}
Expand Down

0 comments on commit ab425e2

Please sign in to comment.