X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fodr_choice.c;h=a3264d9bbcda6ac2803bd27a46c68fc11bf74bb2;hp=06fd6637267c00b9816d1291d8b8e2fd80f8cea4;hb=6ee0d7c0404834a0a59547c3bd7e2686f838ce37;hpb=379504a233e3e2cc85bca1e7b6d864f1395aec7c diff --git a/src/odr_choice.c b/src/odr_choice.c index 06fd663..a3264d9 100644 --- a/src/odr_choice.c +++ b/src/odr_choice.c @@ -1,5 +1,5 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2009 Index Data + * Copyright (C) 1995-2013 Index Data * See the file LICENSE for details. */ @@ -56,7 +56,7 @@ int odr_choice(ODR o, Odr_arm arm[], void *p, void *whichp, { if (o->op->stack_top && !odr_constructed_more(o)) return 0; - if (ber_dectag(o->bp, &cl, &tg, &cn, odr_max(o)) <= 0) + if (ber_dectag(o->op->bp, &cl, &tg, &cn, odr_max(o)) <= 0) return 0; } else if (o->direction != ODR_DECODE)