mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-10 13:00:29 +03:00
LibSymbolication: Return empty value on error
This was probably the intended behavior, but a return statement was missing.
This commit is contained in:
parent
683bf558e4
commit
f4ebcf4867
Notes:
sideshowbarker
2024-07-18 03:23:45 +09:00
Author: https://github.com/rtobar Commit: https://github.com/SerenityOS/serenity/commit/f4ebcf48678 Pull-request: https://github.com/SerenityOS/serenity/pull/10230 Reviewed-by: https://github.com/IdanHo Reviewed-by: https://github.com/awesomekling
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user