mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-28 04:08:08 +00:00
LibWeb: Prevent potential null deref in editing delete action
This commit is contained in:
committed by
Jelle Raaijmakers
parent
a7c75f6fdb
commit
ff25d66dae
@@ -214,7 +214,7 @@ bool command_delete_action(DOM::Document& document, String const&)
|
||||
// start node to its parent.
|
||||
if (start_offset == 0) {
|
||||
start_offset = start_node->index();
|
||||
start_node = *start_node->parent();
|
||||
start_node = start_node->parent();
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user