buf[i] != ISO2709_RS && buf[i] != ISO2709_IDFS &&
buf[i] != ISO2709_FS)
i++;
- yaz_marc_add_subfield(mt, buf+code_offset, i - code_offset);
+ if (i > code_offset)
+ yaz_marc_add_subfield(mt, buf+code_offset, i - code_offset);
}
}
else
/*
* Local variables:
* c-basic-offset: 4
+ * c-file-style: "Stroustrup"
* indent-tabs-mode: nil
* End:
* vim: shiftwidth=4 tabstop=8 expandtab