From: Adam Dickmeiss Date: Tue, 24 Aug 2004 08:44:10 +0000 (+0000) Subject: Clear ODR error in odr_setbuf X-Git-Tag: YAZ.2.0.24~30 X-Git-Url: http://sru.miketaylor.org.uk/?a=commitdiff_plain;h=388a09802a50b37d3b3679949ac91b13594d3260;p=yaz-moved-to-github.git Clear ODR error in odr_setbuf --- diff --git a/src/odr.c b/src/odr.c index 88d7c4e..4cf86ad 100644 --- a/src/odr.c +++ b/src/odr.c @@ -2,7 +2,7 @@ * Copyright (c) 1995-2004, Index Data * See the file LICENSE for details. * - * $Id: odr.c,v 1.4 2004-08-13 08:58:59 adam Exp $ + * $Id: odr.c,v 1.5 2004-08-24 08:44:10 adam Exp $ * */ #if HAVE_CONFIG_H @@ -221,6 +221,7 @@ void odr_destroy(ODR o) void odr_setbuf(ODR o, char *buf, int len, int can_grow) { + odr_seterror(o, ONONE, 0); o->bp = (unsigned char *) buf; o->buf = (unsigned char *) buf;