Skip to content

Commit 2cc01e5

Browse files
Fix compiler warning about uninitialized variables
This fixed compiler warning about uninitialized variable in call to bson_iter_visit_all for line 2145
1 parent 29da448 commit 2cc01e5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libbson/src/bson/bson-iter.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1894,8 +1894,8 @@ bson_iter_visit_all (bson_iter_t *iter, /* INOUT */
18941894
const bson_visitor_t *visitor, /* IN */
18951895
void *data) /* IN */
18961896
{
1897-
uint32_t bson_type;
1898-
const char *key;
1897+
uint32_t bson_type = 0;
1898+
const char *key = NULL;
18991899
bool unsupported;
19001900

19011901
BSON_ASSERT (iter);

0 commit comments

Comments
 (0)