Skip to content

Commit ec928a2

Browse files
committed
Avoid agressive may be used uninitialized warning
tests/test-mongoc-exhaust.c:242:7: warning: ‘pool’ may be used uninitialized in this function [-Wmaybe-uninitialized]
1 parent 1694b35 commit ec928a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test-mongoc-exhaust.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ test_exhaust_cursor (bool pooled)
4343
mongoc_stream_t *stream;
4444
mongoc_write_concern_t *wr;
4545
mongoc_client_t *client;
46-
mongoc_client_pool_t *pool;
46+
mongoc_client_pool_t *pool = NULL;
4747
mongoc_collection_t *collection;
4848
mongoc_cursor_t *cursor;
4949
mongoc_cursor_t *cursor2;

0 commit comments

Comments
 (0)