Skip to content

Commit

Permalink
fix: build failure
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Olivier <[email protected]>
  • Loading branch information
martin-olivier authored Jul 28, 2024
1 parent 74f2005 commit 21cc257
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/dylib.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ dylib::~dylib() {

dylib::native_symbol_type dylib::get_symbol(const char *symbol_name) const {
std::vector<std::string> matching_symbols;
std::vector<std::string> symbols;
std::vector<std::string> all_symbols;

if (!symbol_name)
throw std::invalid_argument("Null parameter");
Expand All @@ -133,9 +133,9 @@ dylib::native_symbol_type dylib::get_symbol(const char *symbol_name) const {
auto symbol = locate_symbol(m_handle, symbol_name);

if (symbol == nullptr) {
symbols = symbols();
all_symbols = symbols();

for (auto &sym : symbols) {
for (auto &sym : all_symbols) {
auto demangled = get_demangled_name(sym.c_str());

if (demangled.empty())
Expand Down

0 comments on commit 21cc257

Please sign in to comment.