From 2307e77a56a235a08ba7f5fcdcb5883676855a08 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 15 Oct 2015 13:57:28 +0100 Subject: [PATCH] Initialize variable on use. --- src/libserver/html.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libserver/html.c b/src/libserver/html.c index 887924bd2..46e7cfbaa 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)); -- 2.39.5