]> source.dussan.org Git - rspamd.git/commitdiff
Initialize variable on use.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 15 Oct 2015 12:57:28 +0000 (13:57 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 15 Oct 2015 12:57:28 +0000 (13:57 +0100)
src/libserver/html.c

index 887924bd27865e4563d35b2d2d6737cc5bc16544..46e7cfbaa47dade8eace5d437d3bf921c1a5ed1a 100644 (file)
@@ -846,6 +846,8 @@ rspamd_html_url_is_phished (rspamd_mempool_t *pool,
        gint rc, state = 0;
        gchar *url_str = NULL;
 
+       *url_found = FALSE;
+
        if (rspamd_url_find (pool, url_text, len, NULL, NULL, &url_str,
                TRUE, &state) && url_str != NULL) {
                text_url = rspamd_mempool_alloc0 (pool, sizeof (struct rspamd_url));