Skip to content

Commit

Permalink
in a case of error reporting load_library should pass char*, not …
Browse files Browse the repository at this point in the history
…`string_t` (dotnet#33323)
  • Loading branch information
VSadov authored Mar 7, 2020
1 parent 774fa9f commit 4214a6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/installer/corehost/cli/hostmisc/pal.unix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ bool pal::load_library(const string_t* path, dll_t* dll)
*dll = dlopen(path->c_str(), RTLD_LAZY);
if (*dll == nullptr)
{
trace::error(_X("Failed to load %s, error: %s"), path, dlerror());
trace::error(_X("Failed to load %s, error: %s"), path->c_str(), dlerror());
return false;
}
return true;
Expand Down

0 comments on commit 4214a6c

Please sign in to comment.