mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-03 14:50:18 +00: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: f4ebcf4867
Pull-request: https://github.com/SerenityOS/serenity/pull/10230
Reviewed-by: https://github.com/IdanHo
Reviewed-by: https://github.com/awesomekling
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue