Fix uninitialised values for <i> and <dd>

Bug-Debian: https://github.com/tats/w3m/issues/16
This commit is contained in:
Tatsuya Kinoshita
2016-08-20 07:12:41 +09:00
parent 6612318232
commit 33509cc81e
2 changed files with 7 additions and 0 deletions
+6
View File
@@ -4686,6 +4686,12 @@ 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,
+1
View File
@@ -120,6 +120,7 @@ parse_tag(char **s, int internal)
int i, attr_id = 0, nattr;
/* Parse tag name */
tagname[0] = '\0';
q = (*s) + 1;
p = tagname;
if (*q == '/') {