mirror of
https://github.com/lexborisov/Modest
synced 2024-11-25 07:09:35 +03:00
Fix segfault
Fix segfault in myhtml_tree_node_clone if node->token is NULL
This commit is contained in:
parent
87d75c9585
commit
a6bb9b3232
@ -516,7 +516,8 @@ myhtml_tree_node_t * myhtml_tree_node_clone(myhtml_tree_node_t* node)
|
||||
{
|
||||
myhtml_tree_node_t* new_node = myhtml_tree_node_create(node->tree);
|
||||
|
||||
myhtml_token_node_wait_for_done(node->tree->token, node->token);
|
||||
if(node->token)
|
||||
myhtml_token_node_wait_for_done(node->tree->token, node->token);
|
||||
|
||||
new_node->token = myhtml_token_node_clone(node->tree->token, node->token,
|
||||
node->tree->mcasync_rules_token_id,
|
||||
|
Loading…
Reference in New Issue
Block a user