X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=ill%2Fill-get.c;h=f95375218d3fef1baa29f6d933bf0a494007f902;hp=8fe525732029676dd220b67a555fd07a612774e0;hb=c71d717ada2a9ef730d527f161eb5ba9aa641a9f;hpb=e5324215018e129dd19734acd0e683e5af748423 diff --git a/ill/ill-get.c b/ill/ill-get.c index 8fe5257..f953752 100644 --- a/ill/ill-get.c +++ b/ill/ill-get.c @@ -3,7 +3,10 @@ * See the file LICENSE for details. * * $Log: ill-get.c,v $ - * Revision 1.8 2001-02-21 13:46:53 adam + * Revision 1.9 2001-03-25 21:55:12 adam + * Added odr_intdup. Ztest server returns TaskPackage for ItemUpdate. + * + * Revision 1.8 2001/02/21 13:46:53 adam * C++ fixes. * * Revision 1.7 2001/02/20 11:25:32 adam @@ -63,7 +66,6 @@ int *ill_get_int (struct ill_get_ctl *gc, const char *name, ODR o = gc->odr; char element[128]; const char *v; - int *r = (int *) odr_malloc (o, sizeof(*r)); strcpy(element, name); if (sub) @@ -74,8 +76,7 @@ int *ill_get_int (struct ill_get_ctl *gc, const char *name, v = (gc->f)(gc->clientData, element); if (v) val = atoi(v); - *r = val; - return r; + return odr_intdup(o, val); } int *ill_get_enumerated (struct ill_get_ctl *gc, const char *name,