Fixed uninitialized variable in curl handler (#3669)

This commit is contained in:
Johan Mabille 2024-12-09 10:58:56 +01:00 committed by GitHub
parent 178593351b
commit 4c5c1d7430
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -240,7 +240,7 @@ namespace mamba::download
}
// Set error buffer
m_errorbuffer[0] = '\0';
std::fill(m_errorbuffer.begin(), m_errorbuffer.end(), '\0');
set_opt(CURLOPT_ERRORBUFFER, m_errorbuffer.data());
}