Merge pull request #44 from Azq2/patch-1

Fix segfault lexborisov/myhtml#138
This commit is contained in:
Alexander 2018-05-13 01:31:58 +03:00 committed by GitHub
commit f2b9714e91
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,