svn commit: r354992 - head/tests/sys/sys
Li-Wen Hsu
lwhsu at FreeBSD.org
Fri Nov 22 10:15:16 UTC 2019
Author: lwhsu
Date: Fri Nov 22 10:15:15 2019
New Revision: 354992
URL: https://svnweb.freebsd.org/changeset/base/354992
Log:
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
Modified:
head/tests/sys/sys/bitstring_test.c
Modified: head/tests/sys/sys/bitstring_test.c
==============================================================================
--- head/tests/sys/sys/bitstring_test.c Fri Nov 22 10:03:16 2019 (r354991)
+++ head/tests/sys/sys/bitstring_test.c Fri Nov 22 10:15:15 2019 (r354992)
@@ -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);
More information about the svn-src-all
mailing list