Skip to content

Commit

Permalink
cleanup: fix xml_node.c type cast warning
Browse files Browse the repository at this point in the history
  • Loading branch information
flavorjones committed Oct 13, 2020
1 parent b329a7c commit b76ee14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/nokogiri/xml_node.c
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ static VALUE reparent_node_with(VALUE pivot_obj, VALUE reparentee_obj, pivot_rep
* issue #391, where new node's prefix may become the string "default"
* see libxml2 tree.c xmlNewReconciliedNs which implements this behavior.
*/
xmlFree(reparentee->ns->prefix);
xmlFree((xmlChar*)reparentee->ns->prefix);
reparentee->ns->prefix = NULL;
}
}
Expand Down

0 comments on commit b76ee14

Please sign in to comment.