Skip to content

Commit

Permalink
Initialize _ySampling to 0 (#1662)
Browse files Browse the repository at this point in the history
Caught by the santizer as potential use-before-initialization

Signed-off-by: Cary Phillips <cary@ilm.com>
  • Loading branch information
cary-ilm committed Mar 23, 2024
1 parent 454cd4d commit cbb0ca6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/OpenEXR/ImfOptimizedPixelReading.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class OptimizationMode
public:
bool _optimizable;
int _ySampling;
OptimizationMode () : _optimizable (false) {}
OptimizationMode () : _optimizable (false), _ySampling (0) {}
};

# ifdef IMF_HAVE_SSE2
Expand Down

0 comments on commit cbb0ca6

Please sign in to comment.