for(; p; p = p->next)
if (p->type == XML_TEXT_NODE)
leader = (const char *) p->content;
+ ptr = ptr->next;
}
break;
}
switch (format)
{
case YAZ_MARC_MARCXML:
- return yaz_marc_read_xml_fields(mt, ptr->next, indicator_length);
+ return yaz_marc_read_xml_fields(mt, ptr, indicator_length);
case YAZ_MARC_TURBOMARC:
- return yaz_marc_read_turbo_xml_fields(mt, ptr->next, indicator_length);
+ return yaz_marc_read_turbo_xml_fields(mt, ptr, indicator_length);
}
return -1;
}