Skip to content

Commit f62076e

Browse files
authored
Merge pull request #1396 from ivanimanishi/ustringFix
OpenImageIOAlgo : Properly handle empty metadata values
2 parents a2935e3 + 5262454 commit f62076e

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Changes

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
10.5.x.x (relative to 10.5.4.0)
22
========
33

4+
Fixes
5+
-----
46

7+
- OpenImageIOAlgo : Properly handle empty metadata values
58

69
10.5.4.0 (relative to 10.5.3.0)
710
========

src/IECoreImage/OpenImageIOAlgo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -584,7 +584,7 @@ IECore::DataPtr data( const OIIO::ParamValue &value )
584584
{
585585
if ( type.arraylen == 0 )
586586
{
587-
return new StringData( static_cast<const ustring *>( value.data() )->c_str() );
587+
return new StringData( static_cast<const ustring *>( value.data() )->string() );
588588
}
589589
else
590590
{

0 commit comments

Comments
 (0)