aboutsummaryrefslogtreecommitdiffstats
path: root/src/protocol.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/protocol.c')
-rw-r--r--src/protocol.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/protocol.c b/src/protocol.c
index 77043bdc0..6806c0ea3 100644
--- a/src/protocol.c
+++ b/src/protocol.c
@@ -488,7 +488,7 @@ show_url_header (struct worker_task *task)
/* Write this url to log as well */
msg_info ("url found: <%s>, score: [%.2f / %.2f]", struri (url), default_score, default_required_score);
}
- if (g_tree_lookup (url_tree, url) == NULL) {
+ if (g_tree_lookup (url_tree, url) == NULL && url->hostlen > 0) {
g_tree_insert (url_tree, url, url);
host.begin = url->host;
host.len = url->hostlen;