Skip to content

Commit 8c11774

Browse files
author
Christian Hergert
committed
client: nullify sock by default.
1 parent 80e0ab3 commit 8c11774

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mongoc/mongoc-client.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ mongoc_client_connect_tcp (const mongoc_uri_t *uri,
8181
const mongoc_host_list_t *host,
8282
bson_error_t *error)
8383
{
84-
mongoc_socket_t *sock;
84+
mongoc_socket_t *sock = NULL;
8585
struct addrinfo hints;
8686
struct addrinfo *result, *rp;
8787
int32_t connecttimeoutms = DEFAULT_CONNECTTIMEOUTMS;

0 commit comments

Comments
 (0)