Prevent deref null pointer in renderCoTable()
Bug-Debian: https://github.com/tats/w3m/issues/20#issuecomment-260649537
This commit is contained in:
@@ -1648,6 +1648,8 @@ renderCoTable(struct table *tbl, int maxlimit)
|
|||||||
|
|
||||||
for (i = 0; i < tbl->ntable; i++) {
|
for (i = 0; i < tbl->ntable; i++) {
|
||||||
t = tbl->tables[i].ptr;
|
t = tbl->tables[i].ptr;
|
||||||
|
if (t == NULL)
|
||||||
|
continue;
|
||||||
col = tbl->tables[i].col;
|
col = tbl->tables[i].col;
|
||||||
row = tbl->tables[i].row;
|
row = tbl->tables[i].row;
|
||||||
indent = tbl->tables[i].indent;
|
indent = tbl->tables[i].indent;
|
||||||
|
|||||||
Reference in New Issue
Block a user