Skip to content

Commit

Permalink
address "‘last_quadrant’ may be used uninitialized" error
Browse files Browse the repository at this point in the history
  • Loading branch information
christianrauch committed May 9, 2024
1 parent ff1a52b commit c8bb298
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/g2d.c
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ int g2d_polygon_contains_point(const zarray_t *poly, double q[2])
int psz = zarray_size(poly);
assert(psz > 0);

int last_quadrant;
int last_quadrant = 0;
int quad_acc = 0;

for (int i = 0; i <= psz; i++) {
Expand Down

0 comments on commit c8bb298

Please sign in to comment.