Skip to content

Commit

Permalink
i.segment: Fix uninitialized struct member 'ngbr_rc.next' in mean_shi…
Browse files Browse the repository at this point in the history
…ft.c (OSGeo#3973)

imagery: Fix uninitialized struct member 'ngbr_rc.next' in mean_shift.c

Co-authored-by: Shubham Vasudeo Desai <sdesai8@vclvm178-253.vcl.ncsu.edu>
  • Loading branch information
ShubhamDesai and Shubham Vasudeo Desai authored Jul 6, 2024
1 parent b432e42 commit 559e088
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions imagery/i.segment/mean_shift.c
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,7 @@ static int find_best_neighbour(struct globals *globals, int row, int col,
visited = pavl_create(cmp_rc, NULL);
ngbr_rc.row = row;
ngbr_rc.col = col;
ngbr_rc.next = NULL;
pngbr_rc = G_malloc(sizeof(struct rc));
*pngbr_rc = ngbr_rc;
pavl_insert(visited, pngbr_rc);
Expand Down

0 comments on commit 559e088

Please sign in to comment.