From 88fa2151d8cc97c13bd2002d9bf7e47a04906ad4 Mon Sep 17 00:00:00 2001 From: wargio Date: Sun, 7 Jan 2024 20:04:06 +0800 Subject: [PATCH] small refactoring --- src/core/Cutter.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/Cutter.cpp b/src/core/Cutter.cpp index c87404f03..0fdc4398e 100644 --- a/src/core/Cutter.cpp +++ b/src/core/Cutter.cpp @@ -3188,12 +3188,12 @@ QList CutterCore::getAllExports() QList CutterCore::getAllSymbols() { CORE_LOCK(); - QList ret; - - if (!(core && core->bin && core->bin->cur && core->bin->cur->o)) { + RzBinFile *bf = rz_bin_cur(core->bin); + if (!bf) { return {}; } + QList ret; const RzPVector *symbols = rz_bin_object_get_symbols(core->bin->cur->o); if (symbols) { for (const auto &bs : CutterPVector(symbols)) {