MARC table: offset type size_t
[yaz-moved-to-github.git] / src / copy_types.c
index d6d6c55..b15536a 100644 (file)
@@ -16,9 +16,7 @@ Z_##x *yaz_clone_z_##x(Z_##x *q, NMEM nmem_out) \
     Z_##x *q1 = 0; \
     ODR enc = odr_createmem(ODR_ENCODE); \
     ODR dec = odr_createmem(ODR_DECODE); \
-    if (!z_##x(enc, &q, 0, 0)) \
-        return 0; \
-    else \
+    if (z_##x(enc, &q, 0, 0)) \
     { \
         int len; \
         char *buf = odr_getbuf(enc, &len, 0); \
@@ -37,6 +35,7 @@ Z_##x *yaz_clone_z_##x(Z_##x *q, NMEM nmem_out) \
 clone_z_type(NamePlusRecord)
 clone_z_type(RPNQuery)
 clone_z_type(Query)
+clone_z_type(RecordComposition)
 
 Z_RPNQuery *yaz_copy_z_RPNQuery(Z_RPNQuery *q, ODR out)
 {