X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=odr%2Fodr_any.c;h=e464872985bc76f7fa538763538f77241b411d06;hb=29a22396d7d7b1219f5b83c35983c8fb1cd79e8f;hp=0def5ee4e2194920e864afa2af14d699a31273e2;hpb=b75023664b529d1cd0dccac2deae78ddbd681369;p=yaz-moved-to-github.git diff --git a/odr/odr_any.c b/odr/odr_any.c index 0def5ee..e464872 100644 --- a/odr/odr_any.c +++ b/odr/odr_any.c @@ -3,7 +3,7 @@ * See the file LICENSE for details. * Sebastian Hammer, Adam Dickmeiss * - * $Id: odr_any.c,v 1.13 2003-03-11 11:03:31 adam Exp $ + * $Id: odr_any.c,v 1.14 2003-05-20 19:55:30 adam Exp $ */ #if HAVE_CONFIG_H #include @@ -32,7 +32,5 @@ int odr_any(ODR o, Odr_any **p, int opt, const char *name) if (ber_any(o, p)) return 1; *p = 0; - if (!opt) - odr_seterror(o, OREQUIRED, 53); - return opt; -} + return odr_missing(o, opt, name); +}