- if (yaz_version(NULL, NULL) >= 0x4022c &&
- rr->num_entries <= scan_list_size)
- {
- /* entries has been initialized by yaz and is big enough
- to hold all entries */
- scan_list = rr->entries;
- }
- else
- {
- scan_list = (struct scan_entry *)
- odr_malloc(rr->stream, rr->num_entries * sizeof(*scan_list));
- }
- buffer = scan_list;