Fixed a new bug introduced with previous commit

This commit is contained in:
Thomas Schmitt 2020-11-07 10:46:15 +01:00
parent b0687643c5
commit ac9d55330d

View File

@ -588,7 +588,7 @@ int iso_image_set_boot_image(IsoImage *image, const char *image_path,
}
parent = (IsoDir*)p;
}
if (catname[0] == '/')
if (catname[0] == '/' || catname[0] == 0)
catname++;
ret = iso_tree_add_boot_node(parent, catname, &cat_node);
free(catdir);