mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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
1 changed files with 2 additions and 0 deletions
|
|
@ -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 a new issue