X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fodr_tag.c;h=685238d2f4dc782a7db4b0e7ea0ce1b5e83a6cbb;hb=cf3ff0df41755297543b14f007842e1dc216ec25;hp=6c534fd0795319dff0e832d43337037b49b2b940;hpb=fb6d99a0c7e07d9cc4a315c447deaf6564a85505;p=yaz-moved-to-github.git diff --git a/src/odr_tag.c b/src/odr_tag.c index 6c534fd..685238d 100644 --- a/src/odr_tag.c +++ b/src/odr_tag.c @@ -2,7 +2,7 @@ * Copyright (C) 1995-2005, Index Data ApS * See the file LICENSE for details. * - * $Id: odr_tag.c,v 1.4 2005-06-25 15:46:04 adam Exp $ + * $Id: odr_tag.c,v 1.5 2005-08-11 14:21:55 adam Exp $ */ /** * \file odr_tag.c @@ -21,7 +21,7 @@ int odr_peektag(ODR o, int *zclass, int *tag, int *cons) odr_seterror(o, OOTHER, 48); return 0; } - if (o->op->stackp > -1 && !odr_constructed_more(o)) + if (ODR_STACK_NOT_EMPTY(o) && !odr_constructed_more(o)) return 0; if (ber_dectag(o->bp, zclass, tag, cons, odr_max(o)) <= 0) {