From 41a607b06e4475101de59e5c623b9e5f76594a21 Mon Sep 17 00:00:00 2001 From: Kuang-che Wu Date: Sun, 27 Nov 2016 15:31:46 +0800 Subject: fix uninitialized variable in process_img(). fix #44 --- file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'file.c') diff --git a/file.c b/file.c index 86af3a9..a87737a 100644 --- a/file.c +++ b/file.c @@ -3263,9 +3263,9 @@ process_img(struct parsed_tag *tag, int width) } #endif } + i = -1; #ifdef USE_IMAGE if (use_image) { - i = -1; if (parsedtag_get_value(tag, ATTR_HEIGHT, &i)) { if (i > 0) { i = (int)(i * image_scale / 100 + 0.5); -- cgit v1.2.3