Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
madsbk committed Oct 29, 2024
1 parent 32a9bed commit 1093e26
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion cpp/include/kvikio/shim/libcurl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,12 @@ class LibCurl {
}
};

__attribute__((optnone)) inline std::string fix_conda_fuckery(std::string filename)
{
if (filename.data() != nullptr) { return std::string{filename.data()}; }
return std::string{};
}

/**
* @brief Representation of a curl easy handle pointer and its operations.
*
Expand All @@ -159,7 +165,7 @@ class CurlHandle {
*/
CurlHandle(LibCurl::UniqueHandlePtr handle, std::string source_file, std::string source_line)
: _handle{std::move(handle)},
_source_file(std::move(source_file)),
_source_file(fix_conda_fuckery(std::move(source_file))),
_source_line(std::move(source_line))
{
// Removing all '\0' characters
Expand Down

0 comments on commit 1093e26

Please sign in to comment.