TCPD libs only used in libyaz's LIBADD
[yaz-moved-to-github.git] / src / copy_types.c
index 73519f1..dc34993 100644 (file)
@@ -1,5 +1,5 @@
 /* This file is part of the YAZ toolkit.
- * Copyright (C) 1995-2009 Index Data
+ * Copyright (C) 1995-2010 Index Data
  * See the file LICENSE for details.
  */
 
@@ -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); \