Skip to content

Commit

Permalink
Merge pull request #462 from nsmlzl/fix_segfault_layout
Browse files Browse the repository at this point in the history
Fix segfault when no progress flag set
  • Loading branch information
AndreaGuarracino authored Nov 28, 2022
2 parents fbfacd9 + ab425e2 commit 8715c55
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 8715c55

Please sign in to comment.