diff options
author | Glenn Randers-Pehrson <glennrp at users.sourceforge.net> | 2014-03-08 12:39:52 -0600 |
---|---|---|
committer | Glenn Randers-Pehrson <glennrp at users.sourceforge.net> | 2014-03-08 12:39:52 -0600 |
commit | 05670156f3d7c7d19f16912267ddfaf5e82c43ce (patch) | |
tree | 503415261cd8d06f16b3efe5bc3235962f95e0ff /pngerror.c | |
parent | b65b3412b19b481378de69bb4a8da701c3307b41 (diff) | |
download | libpng-05670156f3d7c7d19f16912267ddfaf5e82c43ce.tar.gz |
[libpng16] Use "if (value != 0)" instead of "if (value)" consistently.
Diffstat (limited to 'pngerror.c')
-rw-r--r-- | pngerror.c | 8 |
1 files changed, 4 insertions, 4 deletions
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; |