C++ fixes.
[yaz-moved-to-github.git] / zutil / zget.c
index ddcd8d9..520782f 100644 (file)
@@ -4,7 +4,16 @@
  * Sebastian Hammer, Adam Dickmeiss
  *
  * $Log: zget.c,v $
- * Revision 1.1  1999-06-08 10:10:16  adam
+ * Revision 1.4  2001-02-21 13:46:54  adam
+ * C++ fixes.
+ *
+ * Revision 1.3  2000/03/20 19:06:25  adam
+ * Added Segment request for fronend server. Work on admin for client.
+ *
+ * Revision 1.2  1999/11/30 13:47:12  adam
+ * Improved installation. Moved header files to include/yaz.
+ *
+ * Revision 1.1  1999/06/08 10:10:16  adam
  * New sub directory zutil. Moved YAZ Compiler to be part of YAZ tree.
  *
  * Revision 1.17  1999/04/20 09:56:48  adam
@@ -64,7 +73,7 @@
  *
  */
 
-#include <proto.h>
+#include <yaz/proto.h>
 
 Z_InitRequest *zget_InitRequest(ODR o)
 {
@@ -334,7 +343,7 @@ Z_Segment *zget_Segment(ODR o)
     r->numberOfRecordsReturned = (int *)odr_malloc(o, sizeof(int));
     *r->numberOfRecordsReturned = 0;
     r->num_segmentRecords = 0;
-    r->segmentRecords = 0;
+    r->segmentRecords = (Z_NamePlusRecord **) odr_nullval();
     r->otherInfo = 0;
     return r;
 }