Skip to content

Commit 0dc839c

Browse files
authored
CDRIVER-5891 address implicit bool-to-null conversion in return statements (#1888)
1 parent 9d50274 commit 0dc839c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/libmongoc/examples/client-side-encryption-helpers.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ hex_to_bin (const char *hex, uint32_t *len)
1515

1616
size_t num_bytes = hex_len / 2u;
1717
if (num_bytes >= UINT32_MAX) {
18-
return false;
18+
return NULL;
1919
}
2020

2121
*len = (uint32_t) (hex_len / 2u);

src/libmongoc/tests/test-mongoc-topology.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2427,7 +2427,7 @@ initiator_fail (const mongoc_uri_t *uri, const mongoc_host_list_t *host, void *u
24272427
bson_set_error (error, MONGOC_ERROR_STREAM, MONGOC_ERROR_STREAM_CONNECT, "failing in initiator");
24282428
printf ("failing in initiator\n");
24292429

2430-
return false;
2430+
return NULL;
24312431
}
24322432

24332433
// Test failure in `mongoc_topology_scanner_node_setup` during retry of scanning

0 commit comments

Comments
 (0)