Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

i.segment: Fix uninitialized struct member error in region_growing.c #3974

Merged
merged 3 commits into from
Jul 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion imagery/i.segment/region_growing.c
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,8 @@ int region_growing(struct globals *globals)
int pathflag; /* =1 if we didn't find mutually best neighbors, continue with
Rk */
int candidates_only;
struct ngbr_stats Ri, Rk, Rk_bestn, /* Rk's best neighbor */
struct ngbr_stats Ri = {0}, Rk = {0},
Rk_bestn = {0}, /* Rk's best neighbor */
*next;
int Ri_nn, Rk_nn; /* number of neighbors for Ri/Rk */
struct NB_TREE *Ri_ngbrs, *Rk_ngbrs;
Expand Down
Loading