[libpng17] Refactored conditional compilation in png_init_row_info().

This commit is contained in:
Glenn Randers-Pehrson
2015-11-22 09:19:06 -06:00
parent a3458a6ba0
commit 09c90236f4
2 changed files with 66 additions and 54 deletions

View File

@@ -529,7 +529,7 @@ png_set_PLTE(png_structrp png_ptr, png_inforp info_ptr,
(png_ptr->mng_features_permitted & PNG_FLAG_MNG_EMPTY_PLTE) == 0))
png_error(png_ptr, "Invalid palette");
#else
if ((num_palette > 0 && palette == NULL) || (num_palette == 0))
if ((num_palette > 0 && palette == NULL) || num_palette == 0)
png_error(png_ptr, "Invalid palette");
#endif /* MNG_FEATURES */