From: Adam Dickmeiss Date: Wed, 9 Nov 2005 17:47:50 +0000 (+0000) Subject: Fixed check for non-empty record syntax list X-Git-Tag: YAZ.2.1.10~13 X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=commitdiff_plain;h=f985ce965530b3da821236d9c936e54c29884356 Fixed check for non-empty record syntax list --- diff --git a/client/client.c b/client/client.c index 782921c..0feec98 100644 --- a/client/client.c +++ b/client/client.c @@ -2,7 +2,7 @@ * Copyright (C) 1995-2005, Index Data ApS * See the file LICENSE for details. * - * $Id: client.c,v 1.299 2005-11-02 11:54:40 adam Exp $ + * $Id: client.c,v 1.300 2005-11-09 17:47:50 adam Exp $ */ #include @@ -1530,7 +1530,7 @@ static int send_searchRequest(const char *arg) if (smallSetUpperBound > 0 || (largeSetLowerBound > 1 && mediumSetPresentNumber > 0)) { - if (recordsyntax_list > 0) + if (recordsyntax_size > 0) req->preferredRecordSyntax = yaz_oidval_to_z3950oid(out, CLASS_RECSYN, recordsyntax_list[0]); req->smallSetElementSetNames =