aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlaf Hering <olh@suse.de>2014-12-06 10:01:13 +0000
committerTatsuya Kinoshita <tats@debian.org>2014-12-06 10:01:13 +0000
commit608828ed7e3c47560b9653dde5141f27c860449a (patch)
treea1c5a17b45b8e587e60798e5cd910079a9e67d35
parentMerge branch 'bug/no-ascii-default' (diff)
downloadw3m-608828ed7e3c47560b9653dde5141f27c860449a.tar.gz
w3m-608828ed7e3c47560b9653dde5141f27c860449a.zip
Fix crash in parse_tag() during every start
Origin: https://build.opensuse.org/package/view_file/openSUSE:Factory/w3m/w3m-parsetagx-crash.patch?expand=1
-rw-r--r--parsetagx.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/parsetagx.c b/parsetagx.c
index 6b627d2..3435f9f 100644
--- a/parsetagx.c
+++ b/parsetagx.c
@@ -221,6 +221,7 @@ parse_tag(char **s, int internal)
int j, hidden=FALSE;
for (j=0; j<i; j++) {
if (tag->attrid[j] == ATTR_TYPE &&
+ tag->value[j] &&
strcmp("hidden",tag->value[j]) == 0) {
hidden=TRUE;
break;