From d089fa72c83a673c788d828687dbec88fe9d1c4a Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Thu, 6 Jul 2006 07:59:39 +0000 Subject: [PATCH] Change log of retrieval of default resource --- util/res.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 -- 1.7.10.4