aboutsummaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
authorTatsuya Kinoshita <tats@debian.org>2016-11-27 08:08:47 +0000
committerGitHub <noreply@github.com>2016-11-27 08:08:47 +0000
commit476e68f2990be4c090fc2826a3bed83bfa65d4cb (patch)
tree67d883944571b2f763f1869b3733676fbef7abd7 /file.c
parentMerge pull request #49 from kcwu/fix-menu-overflow (diff)
parentfix uninitialized variable in process_img(). fix #44 (diff)
downloadw3m-476e68f2990be4c090fc2826a3bed83bfa65d4cb.tar.gz
w3m-476e68f2990be4c090fc2826a3bed83bfa65d4cb.zip
Merge pull request #50 from kcwu/fix-uninit-process_img
fix uninitialized variable in process_img(). fix #44
Diffstat (limited to 'file.c')
-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);