diff --git a/pngwutil.c b/pngwutil.c index 53a2eca4a..7d24db30c 100644 --- a/pngwutil.c +++ b/pngwutil.c @@ -2684,7 +2684,7 @@ png_write_find_filter(png_structrp png_ptr, png_row_infop row_info) } /* Paeth filter */ - if ((filter_to_do == PNG_FILTER_PAETH) != 0) + if (filter_to_do == PNG_FILTER_PAETH) { png_setup_paeth_row_only(png_ptr, bpp, row_bytes); best_row = png_ptr->try_row;