mirror of
https://github.com/darlinghq/darling-installer.git
synced 2024-11-23 11:39:45 +00:00
fix wrong capture pkg.path behavior when Distribution xml contain
whitespace
This commit is contained in:
parent
2c0081b76d
commit
28ca3f8988
@ -126,7 +126,7 @@ bool DistributionXml::package(const std::string& id, DistributionXml::PkgRef& pk
|
||||
if (attrVal != nullptr)
|
||||
pkg.installKbytes = atoi((char*) attrVal);
|
||||
|
||||
if (pkg.path.empty() && node->children && node->children->type == XML_TEXT_NODE)
|
||||
if (pkg.path.empty() && node->children && node->children->type == XML_TEXT_NODE && !xmlIsBlankNode(node->children))
|
||||
pkg.path = (char*) node->children->content;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user