From 05670156f3d7c7d19f16912267ddfaf5e82c43ce Mon Sep 17 00:00:00 2001 From: Glenn Randers-Pehrson Date: Sat, 8 Mar 2014 12:39:52 -0600 Subject: [libpng16] Use "if (value != 0)" instead of "if (value)" consistently. --- pngerror.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'pngerror.c') diff --git a/pngerror.c b/pngerror.c index bcd85b70f..7f817d212 100644 --- a/pngerror.c +++ b/pngerror.c @@ -1,7 +1,7 @@ /* pngerror.c - stub functions for i/o and memory allocation * - * Last changed in libpng 1.6.10 [March 6, 1014]] + * Last changed in libpng 1.6.11 [(PENDING RELEASE)] * Copyright (c) 1998-2014 Glenn Randers-Pehrson * (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger) * (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.) @@ -195,7 +195,7 @@ png_format_number(png_const_charp start, png_charp end, int format, * drop the decimal point. If the number is a true zero handle that * here. */ - if (output) + if (output != 0) *--end = '.'; else if (number == 0) /* and !output */ *--end = '0'; @@ -939,7 +939,7 @@ png_safe_execute(png_imagep image_in, int (*function)(png_voidp), png_voidp arg) saved_error_buf = image->opaque->error_buf; result = setjmp(safe_jmpbuf) == 0; - if (result) + if (result != 0) { image->opaque->error_buf = safe_jmpbuf; @@ -949,7 +949,7 @@ png_safe_execute(png_imagep image_in, int (*function)(png_voidp), png_voidp arg) image->opaque->error_buf = saved_error_buf; /* And do the cleanup prior to any failure return. */ - if (!result) + if (result == 0) png_image_free(image); return result; -- cgit v1.2.1