Skip to content

Commit

Permalink
Merge pull request #15252 from mjstapp/fix_bitfield_init
Browse files Browse the repository at this point in the history
lib: init new bitfield word after realloc
  • Loading branch information
donaldsharp authored Jan 30, 2024
2 parents cd869eb + cad880c commit 71dd971
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/bitfield.h
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ DECLARE_MTYPE(BITFIELD);
(v).m = (v).m + 1; \
(v).data = XREALLOC(MTYPE_BITFIELD, (v).data, \
(v).m * sizeof(word_t)); \
(v).data[(v).m - 1] = 0; \
} \
} while (0)

Expand Down

0 comments on commit 71dd971

Please sign in to comment.