From: Vsevolod Stakhov Date: Thu, 15 Oct 2015 12:57:28 +0000 (+0100) Subject: Initialize variable on use. X-Git-Tag: 1.0.6~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2307e77a56a235a08ba7f5fcdcb5883676855a08;p=thirdparty%2Frspamd.git Initialize variable on use. --- diff --git a/src/libserver/html.c b/src/libserver/html.c index 887924bd27..46e7cfbaa4 100644 --- a/src/libserver/html.c +++ b/src/libserver/html.c @@ -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));