X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=asn%2Fprt-exp.c;h=fa6ab2bcf488b42c5b495f199e2d06ca0450be30;hp=f7bcb2570a080c895c7a3202511cd3d61f1e7465;hb=78afbee947e1e4d6cd950e2fb9421abcdf1fbab4;hpb=8916c5245235fa1229f8a23ba7ebb1500e98b818 diff --git a/asn/prt-exp.c b/asn/prt-exp.c index f7bcb25..fa6ab2b 100644 --- a/asn/prt-exp.c +++ b/asn/prt-exp.c @@ -4,7 +4,10 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: prt-exp.c,v $ - * Revision 1.5 1995-12-05 11:15:50 quinn + * Revision 1.6 1995-12-14 11:09:09 quinn + * Fixed bug in tagging. + * + * Revision 1.5 1995/12/05 11:15:50 quinn * Work. * * Revision 1.4 1995/09/29 17:11:54 quinn @@ -137,7 +140,10 @@ int z_HumanString(ODR o, Z_HumanString **p, int opt) if (o->direction == ODR_DECODE) *p = odr_malloc(o, sizeof(**p)); else if (!*p) + { + o->t_class = -1; return opt && odr_ok(o); + } if (odr_sequence_of(o, z_HumanStringUnit, &(*p)->strings, &(*p)->num_strings)) return 1; @@ -173,7 +179,10 @@ int z_IconObject(ODR o, Z_IconObject **p, int opt) if (o->direction == ODR_DECODE) *p = odr_malloc(o, sizeof(**p)); else if (!*p) + { + o->t_class = -1; return opt; + } if (odr_sequence_of(o, z_IconObjectUnit, &(*p)->iconUnits, &(*p)->num_iconUnits)) return 1;