Skip to content

Commit

Permalink
Initialize memory to silence lto warning in gcc.
Browse files Browse the repository at this point in the history
  • Loading branch information
tidwall committed Jan 10, 2025
1 parent 664e1df commit 28ab306
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tg.c
Original file line number Diff line number Diff line change
Expand Up @@ -14456,6 +14456,7 @@ static size_t parse_geobin(const uint8_t *geobin, size_t len, size_t i,
if (!feats) {
return 0;
}
memset(feats, 0, nfeats*sizeof(struct tg_geom*));
struct tg_geom *feat = 0;
uint32_t j = 0;
for (; j < nfeats; j++) {
Expand Down

0 comments on commit 28ab306

Please sign in to comment.