Skip to content

Commit 9cb7bf9

Browse files
committed
warning suppression
Signed-off-by: Larry Gritz <[email protected]>
1 parent 964dcf2 commit 9cb7bf9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/openexr.imageio/exroutput.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1066,10 +1066,10 @@ OpenEXROutput::put_parameter(const std::string& name, TypeDesc type,
10661066
Imf::FloatAttribute((float)*(half*)data));
10671067
return true;
10681068
}
1069-
if (type == TypeString && *(const char**)data) {
1069+
if (type == TypeString && !((const ustring*)data)->empty()) {
10701070
header.insert(xname.c_str(),
10711071
Imf::StringAttribute(
1072-
*(const char**)data)); //NOSONAR
1072+
((const ustring*)data)->c_str()));
10731073
return true;
10741074
}
10751075
if (type == TypeDesc::DOUBLE) {

0 commit comments

Comments
 (0)