Skip to content

Commit

Permalink
Fix static analysis warning re: potential null pointer dereference.
Browse files Browse the repository at this point in the history
Signed-off-by: Christina Tempelaar-Lietz <xlietz@gmail.com>
  • Loading branch information
xlietz committed Oct 7, 2019
1 parent 247dbac commit bf1288d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions OpenEXR/IlmImfTest/testLargeDataWindowOffsets.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -352,9 +352,9 @@ test (int testCount)
for(int i = 0 ; i < testCount ; ++i )
{
FrameBuffer writeFrameBuf;
const char** channels=NULL;
switch( random_int(4)
) {
const char** channels=rgb;
switch( random_int(4))
{
case 0 : channels = rgb; break;
case 1 : channels = rgba; break;
case 2 : channels = rgbaz; break;
Expand Down

0 comments on commit bf1288d

Please sign in to comment.