Skip to content

Commit 42cea44

Browse files
authored
Address -Wuninitialized-const-pointer with Clang 21 (#2155)
1 parent d04aa62 commit 42cea44

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/libbson/tests/test-bcon-extract.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ test_double(void)
3333
static void
3434
test_decimal128(void)
3535
{
36-
bson_decimal128_t val;
37-
bson_decimal128_t dec;
38-
bson_t *bcon;
36+
bson_decimal128_t val = {0};
37+
bson_decimal128_t dec = {0};
38+
bson_t *bcon = NULL;
3939

4040
bson_decimal128_from_string("12", &dec);
4141
bcon = BCON_NEW("foo", BCON_DECIMAL128(&dec));

0 commit comments

Comments
 (0)