X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fseshigh.c;h=236069a33f1486b9712dd238c11b068ca0e07549;hb=7b4a8fda694b878b0b3c3bfd67be164fa8293043;hp=99667b93429c59d19d28f871fa0fa7d5ca856147;hpb=bd857a679e59df07af55d32365b55d1544514ca4;p=yaz-moved-to-github.git diff --git a/src/seshigh.c b/src/seshigh.c index 99667b9..236069a 100644 --- a/src/seshigh.c +++ b/src/seshigh.c @@ -2,7 +2,7 @@ * Copyright (C) 1995-2005, Index Data ApS * See the file LICENSE for details. * - * $Id: seshigh.c,v 1.100 2006-10-05 15:24:02 adam Exp $ + * $Id: seshigh.c,v 1.102 2006-10-24 08:12:12 adam Exp $ */ /** * \file seshigh.c @@ -1014,7 +1014,7 @@ static void srw_bend_search(association *assoc, request *req, odr_intdup(assoc->encode, *rr.srw_setnameIdleTime ); } - if (start > rr.hits || start < 1) + if ((rr.hits > 0 && start > rr.hits) || start < 1) { yaz_add_srw_diagnostic( assoc->encode, @@ -2321,7 +2321,7 @@ static Z_APDU *process_initRequest(association *assoc, request *reqb) assoc->init->implementation_name, odr_prepend(assoc->encode, "GFS", resp->implementationName)); - version = odr_strdup(assoc->encode, "$Revision: 1.100 $"); + version = odr_strdup(assoc->encode, "$Revision: 1.102 $"); if (strlen(version) > 10) /* check for unexpanded CVS strings */ version[strlen(version)-2] = '\0'; resp->implementationVersion = odr_prepend(assoc->encode,