Dates
[yaz-moved-to-github.git] / zutil / zget.c
index 62a0b95..cccb08f 100644 (file)
@@ -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.11 2002-02-11 23:25:27 adam Exp $
+ * $Id: zget.c,v 1.14 2003-02-23 21:10:07 adam Exp $
  */
 
 #include <yaz/proto.h>
@@ -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;
 }
@@ -482,6 +483,7 @@ Z_APDU *zget_APDU(ODR o, int which)
         break;
     case Z_APDU_extendedServicesResponse:
         r->u.extendedServicesResponse = zget_ExtendedServicesResponse(o);
+       break;
     case Z_APDU_duplicateDetectionRequest:
         r->u.duplicateDetectionRequest = zget_DuplicateDetectionRequest(o);
         break;