Skip to content

Commit

Permalink
Fixed move constructor in CURLHandle (mamba-org#2710)
Browse files Browse the repository at this point in the history
  • Loading branch information
JohanMabille authored and cvanelteren committed Jul 31, 2023
1 parent 28ac5db commit 68c1169
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libmamba/src/core/curl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,8 @@ namespace mamba
: m_handle(std::move(rhs.m_handle))
, p_headers(std::move(rhs.p_headers))
{
rhs.m_handle = nullptr;
rhs.p_headers = nullptr;
std::swap(m_errorbuffer, rhs.m_errorbuffer);
std::swap(m_result, rhs.m_result);
}
Expand Down

0 comments on commit 68c1169

Please sign in to comment.