X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=util%2Fres.c;h=88a9e81245f09440269bf2f6462c7421187c98a7;hb=918c8b1ec479083d82c390d5dceb4899654cb666;hp=4fbc33ca722356e38b1ef079589fa527d7bcb64c;hpb=510c122aceb2b7a3ec12a6be3de610f0ff470ae4;p=idzebra-moved-to-github.git diff --git a/util/res.c b/util/res.c index 4fbc33c..88a9e81 100644 --- a/util/res.c +++ b/util/res.c @@ -1,5 +1,5 @@ -/* $Id: res.c,v 1.48 2006-03-26 14:05:19 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 @@ -540,3 +541,11 @@ void res_dump (Res r, int level) res_dump (r->over_res, level + 1); } } +/* + * Local variables: + * c-basic-offset: 4 + * indent-tabs-mode: nil + * End: + * vim: shiftwidth=4 tabstop=8 expandtab + */ +