Skip to content

Commit 62a4175

Browse files
committed
Initialize mongoc_ssl_opt_t struct to zero
1 parent e070549 commit 62a4175

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

php_phongo.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1962,7 +1962,7 @@ static mongoc_client_t *php_phongo_make_mongo_client(php_phongo_manager_t *manag
19621962
#else
19631963
if (VCWD_REALPATH(Z_STRVAL_PP(pem), manager->pem_file)) {
19641964
#endif
1965-
mongoc_ssl_opt_t ssl_options;
1965+
mongoc_ssl_opt_t ssl_options = {0};
19661966

19671967
ssl_options.pem_file = manager->pem_file;
19681968
mongoc_client_set_ssl_opts(client, &ssl_options);

0 commit comments

Comments
 (0)