diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-10-15 13:57:28 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-10-15 13:57:28 +0100 |
commit | 2307e77a56a235a08ba7f5fcdcb5883676855a08 (patch) | |
tree | fdffd7d77926cce68dc0200b44400e2eb8793481 /src/libserver/html.c | |
parent | 6acb77745e27717aa7a75b6775ca7b0ade23e318 (diff) | |
download | rspamd-2307e77a56a235a08ba7f5fcdcb5883676855a08.tar.gz rspamd-2307e77a56a235a08ba7f5fcdcb5883676855a08.zip |
Initialize variable on use.
Diffstat (limited to 'src/libserver/html.c')
-rw-r--r-- | src/libserver/html.c | 2 |
1 files changed, 2 insertions, 0 deletions
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)); |