Skip to content

mbedtls: remove unused variable "cacert"#4739

Merged
ethomson merged 1 commit intolibgit2:masterfrom
pks-t:pks/mbedtls-unused-variable
Jul 26, 2018
Merged

mbedtls: remove unused variable "cacert"#4739
ethomson merged 1 commit intolibgit2:masterfrom
pks-t:pks/mbedtls-unused-variable

Conversation

@pks-t
Copy link
Member

@pks-t pks-t commented Jul 26, 2018

In commit 382ed1e (mbedtls: load default CA certificates, 2018-03-29),
the function git_mbedtls_stream_global_init was refactored to call out
to git_mbedtls__set_cert_location instead of setting up the
certificates itself. The conversion forgot to remove the now-unused
"cacert" variable, which is now only getting declared to be free'd at
the end of the function. Remove it.

In commit 382ed1e (mbedtls: load default CA certificates, 2018-03-29),
the function `git_mbedtls_stream_global_init` was refactored to call out
to `git_mbedtls__set_cert_location` instead of setting up the
certificates itself. The conversion forgot to remove the now-unused
"cacert" variable, which is now only getting declared to be free'd at
the end of the function. Remove it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants