Skip to content

Commit

Permalink
i.segment: Fix uninitialized struct member error in region_growing.c (O…
Browse files Browse the repository at this point in the history
…SGeo#3974)

* Fix uninitialized struct member error in region_growing.c

Co-authored-by: Shubham Vasudeo Desai <sdesai8@vclvm178-253.vcl.ncsu.edu>
Co-authored-by: Shubham Vasudeo Desai <sdesai8@vclvm179-2.vcl.ncsu.edu>
  • Loading branch information
3 people authored Jul 8, 2024
1 parent 1c3c303 commit 83f615a
Showing 1 changed file with 2 additions and 1 deletion.
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

0 comments on commit 83f615a

Please sign in to comment.