From: Adam Dickmeiss Date: Mon, 8 May 2006 11:58:37 +0000 (+0000) Subject: Changed behavior of yaz_retrieval_request so that no rules, i.e. no X-Git-Tag: YAZ.2.1.20~58 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=62cdf9134790da1c26687d687b90528e477c07d5;p=yaz-moved-to-github.git Changed behavior of yaz_retrieval_request so that no rules, i.e. no retrieval elements, results in "success" (return value of 0). --- diff --git a/src/retrieval.c b/src/retrieval.c index af13ae9..d86b928 100644 --- a/src/retrieval.c +++ b/src/retrieval.c @@ -2,7 +2,7 @@ * Copyright (C) 2005-2006, Index Data ApS * See the file LICENSE for details. * - * $Id: retrieval.c,v 1.5 2006-05-08 10:16:47 adam Exp $ + * $Id: retrieval.c,v 1.6 2006-05-08 11:58:37 adam Exp $ */ /** * \file retrieval.c @@ -239,9 +239,11 @@ int yaz_retrieval_request(yaz_retrieval_t p, int **backend_syntax) { struct yaz_retrieval_elem *el = p->list; - int syntax_matches = 0; int schema_matches = 0; + + if (!el) + return 0; for(; el; el = el->next) { int schema_ok = 0;