aboutsummaryrefslogtreecommitdiffstats
path: root/src/png.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@member.fsf.org>2015-12-13 16:53:51 +0100
committerMattias Andrée <maandree@member.fsf.org>2015-12-13 16:53:51 +0100
commit731200111990fa8270781ffad2f060f9c214a12a (patch)
treecb00fbfd4af4a8ea7cdc8e128412ff8a48428776 /src/png.c
parentm (diff)
downloadscrotty-731200111990fa8270781ffad2f060f9c214a12a.tar.gz
scrotty-731200111990fa8270781ffad2f060f9c214a12a.tar.bz2
scrotty-731200111990fa8270781ffad2f060f9c214a12a.tar.xz
support margins
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
Diffstat (limited to '')
-rw-r--r--src/png.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/png.c b/src/png.c
index ad889e1..504cdf0 100644
--- a/src/png.c
+++ b/src/png.c
@@ -71,6 +71,7 @@ save_png (int fbfd, long width, long height, int imgfd, void *restrict data)
goto fail;
/* Initialise PNG write, and write head. */
+ errno = 0;
if (setjmp (png_jmpbuf(pngbuf))) /* Failing libpng calls jump here. */
goto fail;
png_init_io (pngbuf, file);