Skip to content

Commit

Permalink
small refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
wargio committed Jan 7, 2024
1 parent 8ac42c4 commit 88fa215
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/core/Cutter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3188,12 +3188,12 @@ QList<ExportDescription> CutterCore::getAllExports()
QList<SymbolDescription> CutterCore::getAllSymbols()
{
CORE_LOCK();
QList<SymbolDescription> ret;

if (!(core && core->bin && core->bin->cur && core->bin->cur->o)) {
RzBinFile *bf = rz_bin_cur(core->bin);
if (!bf) {
return {};
}

QList<SymbolDescription> ret;
const RzPVector *symbols = rz_bin_object_get_symbols(core->bin->cur->o);
if (symbols) {
for (const auto &bs : CutterPVector<RzBinSymbol>(symbols)) {
Expand Down

0 comments on commit 88fa215

Please sign in to comment.