Skip to content

Commit c5c0339

Browse files
authored
fix(exr): allow an empty "name" metadata to be read (#4536)
Continuation of PR #4528. I forgot to change the spot in the OpenEXR "core" API as well. Signed-off-by: Larry Gritz <[email protected]>
1 parent d984586 commit c5c0339

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/openexr.imageio/exrinput_c.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -757,7 +757,7 @@ OpenEXRCoreInput::PartInfo::parse_header(OpenEXRCoreInput* in,
757757
// EXR "name" also gets passed along as "oiio:subimagename".
758758
const char* partname;
759759
if (exr_get_name(ctxt, subimage, &partname) == EXR_ERR_SUCCESS) {
760-
if (partname && partname[0] != '\0')
760+
if (partname)
761761
spec.attribute("oiio:subimagename", partname);
762762
}
763763

0 commit comments

Comments
 (0)