X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=util%2Fres.c;h=779db2dee3fee8b0058eacce53688b05edc79a98;hb=e5ac901438129e9164111e2eb8c21536d1cb34a9;hp=11946c38a4f619986b1dca5152528608cedbf716;hpb=6630f5b4dc744c984086bc9dd8f8b17303fa39f6;p=idzebra-moved-to-github.git diff --git a/util/res.c b/util/res.c index 11946c3..779db2d 100644 --- a/util/res.c +++ b/util/res.c @@ -4,7 +4,10 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: res.c,v $ - * Revision 1.26 1999-10-07 09:48:36 adam + * Revision 1.27 1999-11-30 13:48:04 adam + * Improved installation. Updated for inclusion of YAZ header files. + * + * Revision 1.26 1999/10/07 09:48:36 adam * Allow res_get / res_get_def with NULL res. * * Revision 1.25 1999/05/26 07:49:14 adam @@ -95,7 +98,7 @@ #endif #include -#include +#include static struct res_entry *add_entry (Res r) { @@ -292,6 +295,8 @@ int res_get_match (Res r, const char *name, const char *value, const char *s) { const char *cn = res_get (r, name); + if (!cn) + cn = s; if (cn && !yaz_matchstr (cn, value)) return 1; return 0;