From: Adam Dickmeiss Date: Thu, 6 Jul 2006 07:59:39 +0000 (+0000) Subject: Change log of retrieval of default resource X-Git-Tag: ZEBRA.2.0.0~26 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=d089fa72c83a673c788d828687dbec88fe9d1c4a;p=idzebra-moved-to-github.git Change log of retrieval of default resource --- diff --git a/util/res.c b/util/res.c index fe56609..c388235 100644 --- a/util/res.c +++ b/util/res.c @@ -1,4 +1,4 @@ -/* $Id: res.c,v 1.49 2006-05-10 08:13:46 adam Exp $ +/* $Id: res.c,v 1.50 2006-07-06 07:59:39 adam Exp $ Copyright (C) 1995-2005 Index Data ApS @@ -307,7 +307,8 @@ const char *res_get_def(Res r, const char *name, const char *def) if (!(t = res_get(r, name))) { - yaz_log(YLOG_DEBUG, "CAUTION: Using default resource %s:%s", name, def); + if (def) + yaz_log(YLOG_DEBUG, "Using default resource %s:%s", name, def); return def; } else