fix uninitialized variable in process_img(). fix #44
This commit is contained in:
@@ -3263,9 +3263,9 @@ process_img(struct parsed_tag *tag, int width)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
i = -1;
|
||||||
#ifdef USE_IMAGE
|
#ifdef USE_IMAGE
|
||||||
if (use_image) {
|
if (use_image) {
|
||||||
i = -1;
|
|
||||||
if (parsedtag_get_value(tag, ATTR_HEIGHT, &i)) {
|
if (parsedtag_get_value(tag, ATTR_HEIGHT, &i)) {
|
||||||
if (i > 0) {
|
if (i > 0) {
|
||||||
i = (int)(i * image_scale / 100 + 0.5);
|
i = (int)(i * image_scale / 100 + 0.5);
|
||||||
|
|||||||
Reference in New Issue
Block a user