chore: initialize sig_bit with NULL to silence MSVC
This commit is contained in:
1 parent
3b406a063d
commit
9938bd8ee9
1 file changed
+2
-1
@@ -1026,7 +1026,8 @@ png_read_png(png_structrp png_ptr, png_inforp info_ptr,
|
||||
if ((transforms & PNG_TRANSFORM_SHIFT)
|
||||
&& png_get_valid(png_ptr, info_ptr, PNG_INFO_sBIT))
|
||||
{
|
||||
png_color_8p sig_bit;
|
||||
// 4j change: initialize with null to silence MSVC
|
||||
png_color_8p sig_bit = NULL;
|
||||
|
||||
png_get_sBIT(png_ptr, info_ptr, &sig_bit);
|
||||
png_set_shift(png_ptr, sig_bit);
|
||||
|
||||
Reference in new issue
Block a user