From fbc0ac49e6fc5f2f8c519e89bec29f1c745c12b1 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Thu, 12 Oct 2006 14:10:18 +0000 Subject: Log hostname on insertion failure. svn path=/trunk/netsurf/; revision=3000 --- content/urldb.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'content') diff --git a/content/urldb.c b/content/urldb.c index 89580d1c9..d2a5e22db 100644 --- a/content/urldb.c +++ b/content/urldb.c @@ -355,8 +355,10 @@ void urldb_load(const char *filename) } h = urldb_add_host(host); - if (!h) + if (!h) { + LOG(("Failed adding host: '%s'", host)); die("Memory exhausted whilst loading URL file"); + } /* load the non-corrupt data */ for (i = 0; i < urls; i++) { -- cgit v1.2.3