aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/sys/sys/bitstring_test.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/sys/sys/bitstring_test.c b/tests/sys/sys/bitstring_test.c
index 713ad4d4bac7..8fdc68ecf68e 100644
--- a/tests/sys/sys/bitstring_test.c
+++ b/tests/sys/sys/bitstring_test.c
@@ -347,9 +347,11 @@ ATF_TC_WITHOUT_HEAD(bit_ffs_area);
ATF_TC_BODY(bit_ffs_area, tc)
{
const int nbits = 72;
- bitstr_t bit_decl(bitstr, nbits) = {};
+ bitstr_t bit_decl(bitstr, nbits);
int location;
+ memset(bitstr, 0, bitstr_size(nbits));
+
bit_set(bitstr, 5);
bit_set(bitstr, 6);
@@ -416,7 +418,7 @@ ATF_TC_WITHOUT_HEAD(bit_ffc_area);
ATF_TC_BODY(bit_ffc_area, tc)
{
const int nbits = 80;
- bitstr_t bit_decl(bitstr, nbits) = {};
+ bitstr_t bit_decl(bitstr, nbits);
int location;
/* set all bits */