summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibSymbolication
diff options
context:
space:
mode:
authorRodrigo Tobar <rtobarc@gmail.com>2021-09-27 23:50:09 +0800
committerAndreas Kling <kling@serenityos.org>2021-09-28 10:55:14 +0200
commitf4ebcf486787927cabb9cc6b17323f98444483dc (patch)
tree729d81f19c61dae50dd685092d34778af00e9bb7 /Userland/Libraries/LibSymbolication
parent683bf558e441fc3c0e448ca8807541e754adaa03 (diff)
downloadserenity-f4ebcf486787927cabb9cc6b17323f98444483dc.zip
LibSymbolication: Return empty value on error
This was probably the intended behavior, but a return statement was missing.
Diffstat (limited to 'Userland/Libraries/LibSymbolication')
-rw-r--r--Userland/Libraries/LibSymbolication/Symbolication.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibSymbolication/Symbolication.cpp b/Userland/Libraries/LibSymbolication/Symbolication.cpp
index 459c91bf63..d9635848ff 100644
--- a/Userland/Libraries/LibSymbolication/Symbolication.cpp
+++ b/Userland/Libraries/LibSymbolication/Symbolication.cpp
@@ -72,7 +72,7 @@ Optional<Symbol> symbolicate(String const& path, FlatPtr address)
if (!elf->is_valid()) {
dbgln("ELF not valid: {}", path);
s_cache.set(path, {});
- {};
+ return {};
}
auto cached_elf = make<CachedELF>(mapped_file.release_value(), make<Debug::DebugInfo>(*elf), move(elf));
s_cache.set(path, move(cached_elf));