Prevent negative value of row for pushTable() in HTMLlineproc0()

Bug-Debian: https://github.com/tats/w3m/issues/67
This commit is contained in:
Tatsuya Kinoshita
2016-12-05 01:00:04 +09:00
parent 6c6a2cbced
commit 0e66622582

2
file.c
View File

@@ -6432,6 +6432,8 @@ HTMLlineproc0(char *line, struct html_feed_environ *h_env, int internal)
if (obuf->table_level >= 0) {
struct table *tbl0 = tables[obuf->table_level];
str = Sprintf("<table_alt tid=%d>", tbl0->ntable)->ptr;
if (tbl0->row < 0)
continue;
pushTable(tbl0, tbl);
tbl = tbl0;
tbl_mode = &table_mode[obuf->table_level];