Skip to content

Commit

Permalink
don't index empty array in testMultiPartSharedAttributes
Browse files Browse the repository at this point in the history
  • Loading branch information
peterhillman committed Jul 18, 2019
1 parent c580d35 commit bb5aad9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OpenEXR/IlmImfTest/testMultiPartSharedAttributes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ testMultiPartOutputFileForExpectedFailure (const vector<Header> & headers,
try
{
remove(fn.c_str());
MultiPartOutputFile file(fn.c_str(), &headers[0],headers.size());
MultiPartOutputFile file(fn.c_str(), (headers.size()>0 ? &headers[0] : NULL) , headers.size() );
cerr << "ERROR -- " << failMessage << endl;
assert (false);
}
Expand Down

0 comments on commit bb5aad9

Please sign in to comment.