Initialize variable bitstr

r354991 removed variable-sized object initializing on defining.  For the safe
reason, manually initialize the members to 0.

Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Li-Wen Hsu 2019-11-22 10:15:15 +00:00
parent ebb2a18a9b
commit 70314c42e7

View File

@ -350,6 +350,8 @@ ATF_TC_BODY(bit_ffs_area, tc)
bitstr_t bit_decl(bitstr, nbits);
int location;
memset(bitstr, 0, bitstr_size(nbits));
bit_set(bitstr, 5);
bit_set(bitstr, 6);