X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=asn%2Fprt-add.c;h=eb23dbf953e5ceae2fc9c03d5e7e50b97d521bf1;hp=12ed4941d06f002c0c47384fc3d38c906ec2e704;hb=a7827306d9d9fd634a4b4336944bee781fa61e32;hpb=205c2223beca67a0dc7bf14df988b2c05faf1293 diff --git a/asn/prt-add.c b/asn/prt-add.c index 12ed494..eb23dbf 100644 --- a/asn/prt-add.c +++ b/asn/prt-add.c @@ -1,10 +1,16 @@ /* - * Copyright (c) 1995, Index Data + * Copyright (c) 1995-1998, Index Data * See the file LICENSE for details. * Sebastian Hammer, Adam Dickmeiss * * $Log: prt-add.c,v $ - * Revision 1.1 1996-10-10 11:52:18 quinn + * Revision 1.3 1998-01-05 09:04:57 adam + * Fixed bugs in encoders/decoders - Not operator (!) missing. + * + * Revision 1.2 1997/04/30 08:52:02 quinn + * Null + * + * Revision 1.1 1996/10/10 11:52:18 quinn * Added SearchResult additionalInfo * * @@ -14,7 +20,7 @@ int z_ResultsByDBList (ODR o, Z_ResultsByDBList **p, int opt) { - if (odr_initmember (o, p, sizeof(**p))) + if (!odr_initmember (o, p, sizeof(**p))) return opt && odr_ok(o); if (odr_sequence_of (o, z_DatabaseName, &(*p)->elements, &(*p)->num)) @@ -45,7 +51,7 @@ int z_ResultsByDB_elem (ODR o, Z_ResultsByDB_elem **p, int opt) int z_ResultsByDB (ODR o, Z_ResultsByDB **p, int opt) { - if (odr_initmember (o, p, sizeof(**p))) + if (!odr_initmember (o, p, sizeof(**p))) return opt && odr_ok(o); if (odr_sequence_of (o, z_ResultsByDB_elem, &(*p)->elements, &(*p)->num)) @@ -108,7 +114,7 @@ int z_SearchInfoReport_elem (ODR o, Z_SearchInfoReport_elem **p, int opt) int z_SearchInfoReport (ODR o, Z_SearchInfoReport **p, int opt) { - if (odr_initmember (o, p, sizeof(**p))) + if (!odr_initmember (o, p, sizeof(**p))) return opt && odr_ok(o); if (odr_sequence_of (o, z_SearchInfoReport_elem, &(*p)->elements, &(*p)->num))