Skip to content

Commit 1daf272

Browse files
jeroenkevinAlbs
authored andcommitted
CDRIVER-5913 Fix Windows compilation under C23 (#1886)
1 parent 45aecca commit 1daf272

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libmongoc/src/mongoc/mongoc-secure-channel.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,15 +64,15 @@ mongoc_secure_channel_setup_certificate_from_file (const char *filename)
6464
file = fopen (filename, "rb");
6565
if (!file) {
6666
MONGOC_ERROR ("Couldn't open file '%s'", filename);
67-
return false;
67+
return NULL;
6868
}
6969

7070
fseek (file, 0, SEEK_END);
7171
pem_length = ftell (file);
7272
fseek (file, 0, SEEK_SET);
7373
if (pem_length < 1) {
7474
MONGOC_ERROR ("Couldn't determine file size of '%s'", filename);
75-
return false;
75+
return NULL;
7676
}
7777

7878
pem = (char *) bson_malloc0 (pem_length);

0 commit comments

Comments
 (0)