Commit 49bec344 authored by uqxyd's avatar uqxyd
Browse files

Don't set copy_attr_func to NULL for nodes without attributes.

parent 3ab7a90b
......@@ -685,9 +685,8 @@ EOF
}
my $copy_attr_func = $copy_attr{$attr_type};
if (!defined($copy_attr_func)) {
if ($attr_type eq "") {
$copy_attr_func = "NULL";
} else {
# don't set a copy_attr function if the node has no additional attributes.
if ($attr_type ne "") {
$copy_attr_func = $default_copy_attr;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment