From bda534e12a5071434d700d91750f9c1eaa422812 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Wed, 28 Jul 2010 15:22:44 +0000 Subject: Clean up how GTK frontend finds resources svn path=/trunk/netsurf/; revision=10668 --- utils/messages.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'utils/messages.c') diff --git a/utils/messages.c b/utils/messages.c index 5ac44ae3c..2f3bc173e 100644 --- a/utils/messages.c +++ b/utils/messages.c @@ -116,8 +116,11 @@ void messages_load(const char *path) struct hash_table *m; char s[400]; - assert(path != NULL); - + if (path == NULL) + return; + + LOG(("Loading Messages from '%s'", path)); + m = messages_load_ctx(path, messages_hash); if (m == NULL) { LOG(("Unable to open Messages file '%s'. Possible reason: %s", -- cgit v1.2.3