From f01023e222863a6e97c2ced07dce60c243e75615 Mon Sep 17 00:00:00 2001 From: John Cupitt Date: Tue, 17 Sep 2019 13:32:37 +0100 Subject: [PATCH] fix a compiler warning gcc could warn (incorrectly) about used before set in text.c --- libvips/create/text.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libvips/create/text.c b/libvips/create/text.c index a2d22a30..a0733e31 100644 --- a/libvips/create/text.c +++ b/libvips/create/text.c @@ -239,6 +239,7 @@ vips_text_autofit( VipsText *text ) target.width = text->width; target.height = text->height; previous_dpi = -1; + previous_difference = 0; #ifdef DEBUG printf( "vips_text_autofit: "