Bug fix: iso_node_get_name() of root node returned NULL pointer rather than

an empty string
This commit is contained in:
2015-09-27 12:30:24 +02:00
parent 395128ef5f
commit 218e26c974
2 changed files with 8 additions and 0 deletions

View File

@ -414,6 +414,10 @@ int iso_image_set_node_name(IsoImage *image, IsoNode *node, const char *name,
*/
const char *iso_node_get_name(const IsoNode *node)
{
static char *root = {""};
if (node->name == NULL)
return root;
return node->name;
}