summaryrefslogtreecommitdiff
path: root/view/elf/elfview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'view/elf/elfview.cpp')
-rw-r--r--view/elf/elfview.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/view/elf/elfview.cpp b/view/elf/elfview.cpp
index a01d043b..defd6600 100644
--- a/view/elf/elfview.cpp
+++ b/view/elf/elfview.cpp
@@ -1541,12 +1541,18 @@ bool ElfView::Init()
if (entryArch != entryPointArch)
{
auto func = AddFunctionForAnalysis(platform->GetRelatedPlatform(entryArch), entry);
- AddToEntryFunctions(func);
+ if (func)
+ {
+ AddToEntryFunctions(func);
+ }
}
else
{
auto func = AddFunctionForAnalysis(platform, entry);
- AddToEntryFunctions(func);
+ if (func)
+ {
+ AddToEntryFunctions(func);
+ }
}
m_logger->LogDebug("Adding function start: %#" PRIx64 "\n", entry);