From 731200111990fa8270781ffad2f060f9c214a12a Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 13 Dec 2015 16:53:51 +0100 Subject: support margins MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/png.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/png.c') 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); -- cgit v1.2.3-70-g09d2