aboutsummaryrefslogtreecommitdiffstats
path: root/table.c
diff options
context:
space:
mode:
authorTatsuya Kinoshita <tats@debian.org>2016-11-15 10:52:27 +0000
committerTatsuya Kinoshita <tats@debian.org>2016-11-15 10:52:27 +0000
commit61e50c5fafcd1c462be367e2f2a68c5fab43fb55 (patch)
tree2b4d05670559062ebe3d9779ec4c75748c551f8a /table.c
parentPrevent deref null pointer in shiftAnchorPosition() (diff)
downloadw3m-61e50c5fafcd1c462be367e2f2a68c5fab43fb55.tar.gz
w3m-61e50c5fafcd1c462be367e2f2a68c5fab43fb55.zip
Revert "Prevent infinite recursion with nested table and textarea"
This reverts commit f393faf55975a94217df479e1bd06ee4403c6958.
Diffstat (limited to 'table.c')
-rw-r--r--table.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/table.c b/table.c
index 53b43b7..33593b1 100644
--- a/table.c
+++ b/table.c
@@ -1632,19 +1632,6 @@ renderCoTable(struct table *tbl, int maxlimit)
struct table *t;
int i, col, row;
int indent, maxwidth;
- static struct table *tbl_prev = NULL;
- static int cotbl_count;
-#define MAX_COTABLE 100
-
- if (tbl == NULL)
- return;
- if (tbl != tbl_prev) {
- tbl_prev = tbl;
- cotbl_count = 0;
- }
- if (cotbl_count >= MAX_COTABLE)
- return; /* workaround to prevent infinite recursion */
- cotbl_count++;
for (i = 0; i < tbl->ntable; i++) {
t = tbl->tables[i].ptr;