fix uninitialized variable in process_img(). fix #44

This commit is contained in:
Kuang-che Wu
2016-11-27 15:31:46 +08:00
parent 2d1b5ecddc
commit 41a607b06e
+1 -1
View File
@@ -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);