X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=server%2Fseshigh.c;h=8732dc437231772d703da7c8a754bdf51d0f44d3;hb=aeb5cc9755e2e4d6a788f0bf162017215772cbf8;hp=fb4abe0846b1561b17021d7b9ab25cba4b8754c8;hpb=39fc6d5c771c134df959cdd44b2ad62d07b9576f;p=yaz-moved-to-github.git diff --git a/server/seshigh.c b/server/seshigh.c index fb4abe0..8732dc4 100644 --- a/server/seshigh.c +++ b/server/seshigh.c @@ -2,7 +2,7 @@ * Copyright (c) 1995-2003, Index Data * See the file LICENSE for details. * - * $Id: seshigh.c,v 1.158 2003-05-24 19:20:14 adam Exp $ + * $Id: seshigh.c,v 1.160 2003-07-16 21:02:06 adam Exp $ */ /* @@ -770,7 +770,7 @@ static char *uri_val(const char *path, const char *name, ODR o) const char *p1 = strchr(path, '='); if (!p1) break; - if (p1 - path == nlen && !memcmp(path, name, nlen)) + if ((size_t)(p1 - path) == nlen && !memcmp(path, name, nlen)) { size_t i = 0; char *ret; @@ -2298,6 +2298,7 @@ static Z_APDU *process_sortRequest(association *assoc, request *reqb, res->num_diagnostics = 0; res->diagnostics = 0; } + res->resultCount = 0; res->otherInfo = 0; apdu->which = Z_APDU_sortResponse;