From 7e5b33c30ece6f265593cc442ff5a8579faef8ad Mon Sep 17 00:00:00 2001 From: David Crosby Date: Wed, 15 Jul 2015 08:55:08 -0600 Subject: Remove dead assignments flagged by Clang static analysis --- table.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'table.c') diff --git a/table.c b/table.c index d376284..1725d7b 100644 --- a/table.c +++ b/table.c @@ -429,7 +429,6 @@ visible_length(char *str) char *t, *r2; int amp_len = 0; - t = str; while (*str) { prev_status = status; if (next_status(*str, &status)) { @@ -3018,7 +3017,6 @@ feed_table_tag(struct table *tbl, char *line, struct table_mode *mode, break; case HTML_TABLE_ALT: id = -1; - w = 0; parsedtag_get_value(tag, ATTR_TID, &id); if (id >= 0 && id < tbl->ntable) { struct table *tbl1 = tbl->tables[id].ptr; -- cgit v1.2.3 From 6fe9e524afa7bc4e13d31708a628d16b6d263c6b Mon Sep 17 00:00:00 2001 From: David Crosby Date: Tue, 21 Jul 2015 22:00:42 -0600 Subject: Initialize new_tabwidth at declaration --- table.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'table.c') diff --git a/table.c b/table.c index 1725d7b..b77f0f8 100644 --- a/table.c +++ b/table.c @@ -1690,7 +1690,7 @@ renderTable(struct table *t, int max_width, struct html_feed_environ *h_env) { int i, j, w, r, h; Str renderbuf; - short new_tabwidth[MAXCOL]; + short new_tabwidth[MAXCOL] = { 0 }; #ifdef MATRIX int itr; VEC *newwidth; -- cgit v1.2.3