X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=util%2Fres.c;h=88a9e81245f09440269bf2f6462c7421187c98a7;hb=4baef7e0b9ea339001aa01a9e5126edad270c9e2;hp=fe56609934f347f6f9f7873ffd9d8cd689706347;hpb=ecb3935e78cd9bcfdebafdee0834cfb1060d7b5e;p=idzebra-moved-to-github.git diff --git a/util/res.c b/util/res.c index fe56609..88a9e81 100644 --- a/util/res.c +++ b/util/res.c @@ -1,5 +1,5 @@ -/* $Id: res.c,v 1.49 2006-05-10 08:13:46 adam Exp $ - Copyright (C) 1995-2005 +/* $Id: res.c,v 1.51 2006-08-14 10:40:34 adam Exp $ + Copyright (C) 1995-2006 Index Data ApS This file is part of the Zebra server. @@ -15,9 +15,9 @@ FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License -along with Zebra; see the file LICENSE.zebra. If not, write to the -Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA -02111-1307, USA. +along with this program; if not, write to the Free Software +Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ #include @@ -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