X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fsrw.c;h=93ff77c52929c0a30782ec15156f28ba55b5e8be;hb=31c5e5fa92f5980deac3c042b765e4148329cd1b;hp=bc3c7474ff314e0754154bb7a234f48e115d8ce6;hpb=6e3d70edfadd110351b71466c51632e288e31773;p=yaz-moved-to-github.git diff --git a/src/srw.c b/src/srw.c index bc3c747..93ff77c 100644 --- a/src/srw.c +++ b/src/srw.c @@ -1,5 +1,5 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2009 Index Data + * Copyright (C) 1995-2010 Index Data * See the file LICENSE for details. */ /** @@ -192,7 +192,7 @@ static int match_xsd_integer(xmlNodePtr ptr, const char *elem, ODR o, ptr = ptr->children; if (!ptr || ptr->type != XML_TEXT_NODE) return 0; - *val = odr_intdup(o, atoi((const char *) ptr->content)); + *val = odr_intdup(o, odr_atoi((const char *) ptr->content)); return 1; } @@ -734,6 +734,7 @@ int yaz_srw_codec(ODR o, void * vptr, Z_SRW_PDU **handler_data, res->diagnostics = 0; res->num_diagnostics = 0; res->nextRecordPosition = 0; + res->facetList = 0; for (; ptr; ptr = ptr->next) {