From ed0769e18d611b4a43aecbb104b5a86aaf15cdc5 Mon Sep 17 00:00:00 2001 From: dann frazier Date: Mon, 9 Dec 2024 13:54:53 -0700 Subject: [PATCH] Fix another uninitialized variable in curl handler Signed-off-by: dann frazier --- libmamba/src/download/curl.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/libmamba/src/download/curl.cpp b/libmamba/src/download/curl.cpp index 4c5e50b073..dda8c97d5c 100644 --- a/libmamba/src/download/curl.cpp +++ b/libmamba/src/download/curl.cpp @@ -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()); }