Skip to content

Commit

Permalink
Per #2402, ci-run-unit fix CgFontCollection::init_from_scratch() to i…
Browse files Browse the repository at this point in the history
…nitialize Nalloc to 0 to avoid segfault.
  • Loading branch information
JohnHalleyGotway committed Feb 20, 2023
1 parent 1a5b076 commit a7fb293
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/tools/other/mode_graphics/cgraph_font.cc
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,8 @@ void CgFontCollection::init_from_scratch()

{

Nelements = Nalloc = 0;

clear();

return;
Expand Down

0 comments on commit a7fb293

Please sign in to comment.