From 21cc2575d076ccd3de59b56da8ad2363e00c037a Mon Sep 17 00:00:00 2001 From: Martin Olivier Date: Sun, 28 Jul 2024 19:59:56 +0200 Subject: [PATCH] fix: build failure Signed-off-by: Martin Olivier --- src/dylib.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/dylib.cpp b/src/dylib.cpp index c3b7ec7..db8cdca 100644 --- a/src/dylib.cpp +++ b/src/dylib.cpp @@ -123,7 +123,7 @@ dylib::~dylib() { dylib::native_symbol_type dylib::get_symbol(const char *symbol_name) const { std::vector matching_symbols; - std::vector symbols; + std::vector all_symbols; if (!symbol_name) throw std::invalid_argument("Null parameter"); @@ -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())