X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fodr_bool.c;h=0dc5b22957084b89e5a7cc773b71d3d7ed2edc15;hp=6a7771661e82d2d74c4efe037afbd65967b3158a;hb=2788a4851b551e1a3efb320a2878b809f2d8a9d7;hpb=8d691989077a0addcbd840d769dce6700f3d9622 diff --git a/src/odr_bool.c b/src/odr_bool.c index 6a77716..0dc5b22 100644 --- a/src/odr_bool.c +++ b/src/odr_bool.c @@ -1,8 +1,6 @@ -/* - * Copyright (C) 1995-2007, Index Data ApS +/* This file is part of the YAZ toolkit. + * Copyright (C) 1995-2009 Index Data * See the file LICENSE for details. - * - * $Id: odr_bool.c,v 1.6 2007-01-03 08:42:15 adam Exp $ */ /** @@ -26,12 +24,13 @@ int odr_bool(ODR o, int **p, int opt, const char *name) if (o->error) return 0; - if (o->t_class < 0) + if (o->op->t_class < 0) { - o->t_class = ODR_UNIVERSAL; - o->t_tag = ODR_BOOLEAN; + o->op->t_class = ODR_UNIVERSAL; + o->op->t_tag = ODR_BOOLEAN; } - if ((res = ber_tag(o, p, o->t_class, o->t_tag, &cons, opt, name)) < 0) + res = ber_tag(o, p, o->op->t_class, o->op->t_tag, &cons, opt, name); + if (res < 0) return 0; if (!res) return odr_missing(o, opt, name);