mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-22 04:25:13 +00:00
LibWeb: Prevent potential null deref in editing delete action
This commit is contained in:
parent
a7c75f6fdb
commit
ff25d66dae
Notes:
github-actions[bot]
2024-12-21 18:17:08 +00:00
Author: https://github.com/gmta Commit: https://github.com/LadybirdBrowser/ladybird/commit/ff25d66dae0 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2991
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue