Skip to content

Commit

Permalink
ci-debug
Browse files Browse the repository at this point in the history
  • Loading branch information
madsbk committed Oct 28, 2024
1 parent 23dc762 commit d245835
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cpp/include/kvikio/shim/libcurl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,15 @@ class CurlHandle {
_source_line(std::move(source_line))
{
// Removing all '\0' characters
auto _source_file_size = _source_file.size();
_source_file.erase(std::remove(_source_file.begin(), _source_file.end(), '\0'),
_source_file.end());
if (_source_file_size != _source_file.size()) {
std::stringstream ss;
ss << "CurlHandle - `source_file` contains " << _source_file_size - _source_file.size()
<< " '\\0' chars?!?";
throw std::runtime_error(ss.str());
}

// Need CURLOPT_NOSIGNAL to support threading, see
// <https://curl.se/libcurl/c/CURLOPT_NOSIGNAL.html>
Expand Down

0 comments on commit d245835

Please sign in to comment.