From 6612318232a5ef91db1fe26678c3ef1f87385d50 Mon Sep 17 00:00:00 2001 From: Tatsuya Kinoshita Date: Sat, 20 Aug 2016 06:53:41 +0900 Subject: Revert "Fix uninitialised values for and
" This reverts commit 0fba2f1a6eb6861206ad120a02af2643938082cd. cf. https://github.com/tats/w3m/commit/0fba2f1a6eb6861206ad120a02af2643938082cd#commitcomment-18703355 --- file.c | 6 ------ parsetagx.c | 1 - 2 files changed, 7 deletions(-) diff --git a/file.c b/file.c index b66f8c8..de916bc 100644 --- a/file.c +++ b/file.c @@ -4686,12 +4686,6 @@ HTMLtagproc1(struct parsed_tag *tag, struct html_feed_environ *h_env) case HTML_DD: CLOSE_A; CLOSE_DT; - if (h_env->envc == 0 || - (h_env->envc_real < h_env->nenv && - envs[h_env->envc].env != HTML_DL && - envs[h_env->envc].env != HTML_DL_COMPACT)) { - PUSH_ENV(HTML_DL); - } if (envs[h_env->envc].env == HTML_DL_COMPACT) { if (obuf->pos > envs[h_env->envc].indent) flushline(h_env, obuf, envs[h_env->envc].indent, 0, diff --git a/parsetagx.c b/parsetagx.c index cd1ff58..3435f9f 100644 --- a/parsetagx.c +++ b/parsetagx.c @@ -126,7 +126,6 @@ parse_tag(char **s, int internal) *(p++) = *(q++); SKIP_BLANKS(q); } - tagname[0] = '\0'; while (*q && !IS_SPACE(*q) && !(tagname[0] != '/' && *q == '/') && *q != '>' && p - tagname < MAX_TAG_LEN - 1) { *(p++) = TOLOWER(*q); -- cgit v1.2.3