mirror of
https://git.neolegacy.dev/neoStudiosLCE/4JLibs.git
synced 2026-07-18 01:20:42 +00:00
chore: initialize sig_bit with NULL to silence MSVC
This commit is contained in:
@@ -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