summaryrefslogtreecommitdiff
path: root/example.c
diff options
context:
space:
mode:
authorGlenn Randers-Pehrson <glennrp at users.sourceforge.net>2014-03-08 12:39:52 -0600
committerGlenn Randers-Pehrson <glennrp at users.sourceforge.net>2014-03-08 12:39:52 -0600
commit05670156f3d7c7d19f16912267ddfaf5e82c43ce (patch)
tree503415261cd8d06f16b3efe5bc3235962f95e0ff /example.c
parentb65b3412b19b481378de69bb4a8da701c3307b41 (diff)
downloadlibpng-05670156f3d7c7d19f16912267ddfaf5e82c43ce.tar.gz
[libpng16] Use "if (value != 0)" instead of "if (value)" consistently.
Diffstat (limited to 'example.c')
-rw-r--r--example.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/example.c b/example.c
index 77d907797..8ef300235 100644
--- a/example.c
+++ b/example.c
@@ -2,8 +2,8 @@
#if 0 /* in case someone actually tries to compile this */
/* example.c - an example of using libpng
- * Last changed in libpng 1.6.3 [July 18, 2013]
- * Maintained 1998-2013 Glenn Randers-Pehrson
+ * Last changed in libpng 1.6.11 [(PENDING RELEASE)]
+ * Maintained 1998-2014 Glenn Randers-Pehrson
* Maintained 1996, 1997 Andreas Dilger)
* Written 1995, 1996 Guy Eric Schalnat, Group 42, Inc.)
* To the extent possible under law, the authors have waived
@@ -970,7 +970,7 @@ void write_png(char *file_name /* , ... other image information ... */)
png_set_packswap(png_ptr);
/* Turn on interlace handling if you are not using png_write_image() */
- if (interlacing)
+ if (interlacing != 0)
number_passes = png_set_interlace_handling(png_ptr);
else