X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=zutil%2Fzget.c;h=629f082459680cd84923d870da38be8c4cb3ecfb;hb=29a22396d7d7b1219f5b83c35983c8fb1cd79e8f;hp=dfbb2a661c2394ac6b61780cdc5f810bdbd97b00;hpb=f44aed624693cd65d1c2f780452eb9aa6c339bdb;p=yaz-moved-to-github.git diff --git a/zutil/zget.c b/zutil/zget.c index dfbb2a6..629f082 100644 --- a/zutil/zget.c +++ b/zutil/zget.c @@ -1,9 +1,9 @@ /* - * Copyright (c) 1995-2002, Index Data. + * Copyright (c) 1995-2003, Index Data. * See the file LICENSE for details. * Sebastian Hammer, Adam Dickmeiss * - * $Id: zget.c,v 1.12 2002-04-25 08:34:08 adam Exp $ + * $Id: zget.c,v 1.15 2003-10-08 21:48:19 adam Exp $ */ #include @@ -135,7 +135,7 @@ Z_PresentResponse *zget_PresentResponse(ODR o) r->referenceId = 0; r->numberOfRecordsReturned = odr_intdup(o, 0); r->nextResultSetPosition = odr_intdup(o, 0); - r->presentStatus = odr_intdup(o, Z_PRES_SUCCESS); + r->presentStatus = odr_intdup(o, Z_PresentStatus_success); r->records = 0; r->otherInfo = 0; return r; @@ -334,6 +334,7 @@ Z_SortResponse *zget_SortResponse(ODR o) r->sortStatus = odr_intdup(o, Z_SortStatus_success); r->resultSetStatus = odr_intdup(o, Z_SortResultSetStatus_empty); r->diagnostics = 0; + r->resultCount = 0; r->otherInfo = 0; return r; }