Skip to content

Commit dd200e4

Browse files
authored
Fix test suite log handler UB due to incorrect argument (#1379)
1 parent b06a001 commit dd200e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libmongoc/tests/test-libmongoc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2679,7 +2679,7 @@ test_libmongoc_init (TestSuite *suite,
26792679

26802680
bson_mutex_init (&captured_logs_mutex);
26812681
_mongoc_array_init (&captured_logs, sizeof (log_entry_t *));
2682-
mongoc_log_set_handler (log_handler, (void *) &suite);
2682+
mongoc_log_set_handler (log_handler, (void *) suite);
26832683

26842684
#ifdef MONGOC_ENABLE_SSL
26852685
test_framework_global_ssl_opts_init ();

0 commit comments

Comments
 (0)