Skip to content

Commit 8715c55

Browse files
Merge pull request #462 from nsmlzl/fix_segfault_layout
Fix segfault when no progress flag set
2 parents fbfacd9 + ab425e2 commit 8715c55

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/algorithms/path_sgd_layout.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,9 @@ namespace odgi {
374374
term_updates_local++;
375375
if (term_updates_local >= 1000) {
376376
term_updates += term_updates_local;
377-
progress_meter->increment(term_updates_local);
377+
if (progress) {
378+
progress_meter->increment(term_updates_local);
379+
}
378380
term_updates_local = 0;
379381
}
380382
}

0 commit comments

Comments
 (0)