aboutsummaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
authorKuang-che Wu <kcwu@google.com>2016-11-27 07:31:46 +0000
committerKuang-che Wu <kcwu@google.com>2016-11-27 07:33:34 +0000
commit41a607b06e4475101de59e5c623b9e5f76594a21 (patch)
treee965222b3db8c71ec9ff2c331cc1f84b9ce3b563 /file.c
parentUpdate ChangeLog (diff)
downloadw3m-41a607b06e4475101de59e5c623b9e5f76594a21.tar.gz
w3m-41a607b06e4475101de59e5c623b9e5f76594a21.zip
fix uninitialized variable in process_img(). fix #44
Diffstat (limited to '')
-rw-r--r--file.c2
1 files changed, 1 insertions, 1 deletions
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);