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:
parent
ebb2a18a9b
commit
70314c42e7
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user