diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-01-15 15:54:43 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-01-15 15:54:43 +0000 |
commit | 27e45bef83fe17b339fe345e3455a67b7416e1d3 (patch) | |
tree | a916601653c8eaca9488d7dd55b4de565078047d /src/libserver/html.c | |
parent | 46fd25c4dda2e4cc25f662dc5cb5dad0d4380503 (diff) | |
download | rspamd-27e45bef83fe17b339fe345e3455a67b7416e1d3.tar.gz rspamd-27e45bef83fe17b339fe345e3455a67b7416e1d3.zip |
Fix warnings.
Diffstat (limited to 'src/libserver/html.c')
-rw-r--r-- | src/libserver/html.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/libserver/html.c b/src/libserver/html.c index 5c55d6f30..77de30e8c 100644 --- a/src/libserver/html.c +++ b/src/libserver/html.c @@ -1661,7 +1661,7 @@ GByteArray* rspamd_html_process_part_full (rspamd_mempool_t *pool, struct html_content *hc, GByteArray *in, GList **exceptions, GHashTable *urls, GHashTable *emails) { - const guchar *p, *c, *end, *tag_start = NULL, *savep = NULL; + const guchar *p, *c, *end, *savep = NULL; guchar t; gboolean closing = FALSE, need_decode = FALSE, save_space = FALSE, balanced, url_text; @@ -1735,7 +1735,6 @@ rspamd_html_process_part_full (rspamd_mempool_t *pool, struct html_content *hc, switch (t) { case '<': p ++; - tag_start = p; closing = FALSE; break; case '!': @@ -1750,14 +1749,12 @@ rspamd_html_process_part_full (rspamd_mempool_t *pool, struct html_content *hc, case '/': closing = TRUE; p ++; - tag_start = p; break; case '>': /* Empty tag */ hc->flags |= RSPAMD_HTML_FLAG_BAD_ELEMENTS; state = tag_end; p ++; - tag_start = NULL; break; default: state = tag_content; @@ -1786,7 +1783,6 @@ rspamd_html_process_part_full (rspamd_mempool_t *pool, struct html_content *hc, break; default: state = sgml_content; - tag_start = p; break; } @@ -1959,7 +1955,6 @@ rspamd_html_process_part_full (rspamd_mempool_t *pool, struct html_content *hc, break; case tag_end: - tag_start = NULL; substate = 0; savep = NULL; |