From: Adam Dickmeiss Date: Tue, 9 Oct 2012 09:18:52 +0000 (+0200) Subject: retrieval: empty backend name attribute omits element set X-Git-Tag: v4.2.41~3 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=29eb8a4bca1b88b1954ad28935100cbc5e3540b3;p=yaz-moved-to-github.git retrieval: empty backend name attribute omits element set from being used in retrieval. --- diff --git a/src/retrieval.c b/src/retrieval.c index ee1d1ff..9d28a2e 100644 --- a/src/retrieval.c +++ b/src/retrieval.c @@ -337,7 +337,10 @@ int yaz_retrieval_request(yaz_retrieval_t p, if (backend_schema) { if (el->backend_name) - *backend_schema = el->backend_name; + { + if (*el->backend_name) + *backend_schema = el->backend_name; + } else if (el->name) *backend_schema = el->name; else