From cea1e53319b03839c0808eca1c41f2524723dbf4 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 3 Jul 2009 20:17:10 +0400 Subject: * Check return value from evdns_resolve * Do not parse html parts double time while extracting urls, just parse tags attributes --- src/html.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/html.c') diff --git a/src/html.c b/src/html.c index 6e7b683e9..8585f4062 100644 --- a/src/html.c +++ b/src/html.c @@ -328,7 +328,7 @@ parse_tag_url (struct worker_task *task, struct mime_text_part *part, tag_id_t i if (len == 0 || g_ascii_strncasecmp (c, "http://", sizeof ("http://") - 1) != 0) { return; } - + url_text = memory_pool_alloc (task->task_pool, len + 1); g_strlcpy (url_text, c, len + 1); url = memory_pool_alloc (task->task_pool, sizeof (struct uri)); -- cgit v1.2.3