From 4214a6c0877116bf20fde4a95ed9c2c3029c3df8 Mon Sep 17 00:00:00 2001 From: Vladimir Sadov Date: Fri, 6 Mar 2020 20:21:18 -0800 Subject: [PATCH] in a case of error reporting `load_library` should pass `char*`, not `string_t` (#33323) --- src/installer/corehost/cli/hostmisc/pal.unix.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/installer/corehost/cli/hostmisc/pal.unix.cpp b/src/installer/corehost/cli/hostmisc/pal.unix.cpp index 54488e6bfddaf3..789d18bdb2e63e 100644 --- a/src/installer/corehost/cli/hostmisc/pal.unix.cpp +++ b/src/installer/corehost/cli/hostmisc/pal.unix.cpp @@ -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;