X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=odr%2Fodr_any.c;h=e464872985bc76f7fa538763538f77241b411d06;hp=0def5ee4e2194920e864afa2af14d699a31273e2;hb=ec1f815d5348cd21e393f76bc212c910c34bbc45;hpb=05d1794c4ac57eabe6f6da766156f6986d5c987c 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); +}