summaryrefslogtreecommitdiff
path: root/examples/crop.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/crop.c')
-rw-r--r--examples/crop.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/crop.c b/examples/crop.c
index 0eb4182..bafb6df 100644
--- a/examples/crop.c
+++ b/examples/crop.c
@@ -33,6 +33,7 @@ gdImagePtr read_png(const char *filename)
#ifdef HAVE_LIBPNG
im = gdImageCreateFromPng(fp);
#else
+ im = NULL;
printf("No PNG support. Cannot read image.\n");
#endif
fclose(fp);