From 5e5065715ec4a35b9619d079884673f186a777ce Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 28 Sep 2017 21:40:28 +0530 Subject: [PATCH] ... --- kitty/graphics.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kitty/graphics.c b/kitty/graphics.c index 0614b4983..3aa283eee 100644 --- a/kitty/graphics.c +++ b/kitty/graphics.c @@ -209,7 +209,7 @@ inflate_png_inner(struct png_jmp_data *d, uint8_t *buf, size_t bufsz) { struct fake_file f = {.buf = buf, .sz = bufsz}; png_structp png = NULL; png_infop info = NULL; - static jmp_buf jb; + jmp_buf jb; png = png_create_read_struct(PNG_LIBPNG_VER_STRING, &jb, read_png_error_handler, read_png_warn_handler); if (!png) ABRT(ENOMEM, "Failed to create PNG read structure"); info = png_create_info_struct(png);