app: also check for an empty name.
I'm looking at #14014. It's probably not the problem either, especially as gimp_parasite_new() would return a NULL parasite anyway with an empty name. But better be thorough and output a sensible error as soon as possible when loading a XCF.
This commit is contained in:
parent
272deddee1
commit
d320b85115
1 changed files with 1 additions and 1 deletions
|
|
@ -4782,7 +4782,7 @@ xcf_load_parasite (XcfInfo *info)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
if (!name)
|
||||
if (! name || strlen (name) == 0)
|
||||
{
|
||||
g_printerr ("Parasite has no name! Possibly corrupt XCF file.\n");
|
||||
return NULL;
|
||||
|
|
|
|||
Loading…
Reference in a new issue