projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ZOOM: resultset size (hit count) is type Odr_int
[yaz-moved-to-github.git]
/
src
/
seshigh.c
diff --git
a/src/seshigh.c
b/src/seshigh.c
index
b0349e7
..
bdfb499
100644
(file)
--- a/
src/seshigh.c
+++ b/
src/seshigh.c
@@
-2755,7
+2755,9
@@
static Z_APDU *response_searchRequest(association *assoc, request *reqb,
comp.which = Z_RecordComp_simple;
/* how many records does the user agent want, then? */
comp.which = Z_RecordComp_simple;
/* how many records does the user agent want, then? */
- if (bsrt->hits <= *req->smallSetUpperBound)
+ if (bsrt->hits < 0)
+ *toget = 0;
+ else if (bsrt->hits <= *req->smallSetUpperBound)
{
*toget = bsrt->hits;
if ((comp.u.simple = req->smallSetElementSetNames))
{
*toget = bsrt->hits;
if ((comp.u.simple = req->smallSetElementSetNames))