X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fodr_tag.c;h=3fe167b44fe24da10c1ac9bf6e3e597f64d6713f;hb=951fce6496397a6d8c11e15ab5b60b46abc43467;hp=6c534fd0795319dff0e832d43337037b49b2b940;hpb=fb6d99a0c7e07d9cc4a315c447deaf6564a85505;p=yaz-moved-to-github.git diff --git a/src/odr_tag.c b/src/odr_tag.c index 6c534fd..3fe167b 100644 --- a/src/odr_tag.c +++ b/src/odr_tag.c @@ -1,8 +1,8 @@ /* - * Copyright (C) 1995-2005, Index Data ApS + * Copyright (C) 1995-2007, 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.6 2007-01-03 08:42:15 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) {