mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 00:19:53 +01:00
LibWeb: Prevent potential null deref in editing delete action
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user