build: Remove another uninitialized variable in curl handler (#3678)

Signed-off-by: dann frazier <dann.frazier@chainguard.dev>
This commit is contained in:
dann frazier 2024-12-10 04:01:45 -06:00 committed by GitHub
parent 693ee82c7b
commit bb38a698cf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -250,6 +250,7 @@ namespace mamba::download
{
rhs.m_handle = nullptr;
rhs.p_headers = nullptr;
std::fill(m_errorbuffer.begin(), m_errorbuffer.end(), '\0');
std::swap(m_errorbuffer, rhs.m_errorbuffer);
set_opt(CURLOPT_ERRORBUFFER, m_errorbuffer.data());
}