Skip to content

Commit

Permalink
build: Remove another uninitialized variable in curl handler (#3678)
Browse files Browse the repository at this point in the history
Signed-off-by: dann frazier <[email protected]>
  • Loading branch information
dannf authored Dec 10, 2024
1 parent 693ee82 commit bb38a69
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libmamba/src/download/curl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
Expand Down

0 comments on commit bb38a69

Please sign in to comment.