Z_AttributeElement ** elements;
attributes->num_attributes = 1;
elements = (Z_AttributeElement**)
- odr_malloc (o, attributes->num_attributes * sizeof(*elements));
+ odr_malloc(o, attributes->num_attributes * sizeof(*elements));
elements[0] = (Z_AttributeElement*) odr_malloc(o,sizeof(**elements));
elements[0]->attributeType = odr_intdup(o, 1);
elements[0]->attributeSet = odr_nullval();
const char *message, const char *details)
{
Z_SRW_diagnostic *d_new;
- d_new = (Z_SRW_diagnostic *) odr_malloc (o, (*num + 1)* sizeof(**d));
+ d_new = (Z_SRW_diagnostic *) odr_malloc(o, (*num + 1)* sizeof(**d));
if (*num)
- memcpy (d_new, *d, *num *sizeof(**d));
+ memcpy(d_new, *d, *num *sizeof(**d));
*d = d_new;
yaz_mk_srw_diagnostic(o, *d + *num, uri, message, details);
sr->u.response->nextRecordPosition = 0;
sr->u.response->extra_records = 0;
sr->u.response->facetList = 0;
+ sr->u.response->suggestions = 0;
break;
case Z_SRW_explain_request:
sr->u.explain_request = (Z_SRW_explainRequest *)
static int bib1_srw_map[] = {
1, 1,
2, 2,
- 3, 11,
+ 3, 48,
4, 35,
5, 12,
6, 38,
7, 30,
8, 32,
9, 29,
- 108, 10, /* Malformed query : Syntax error */
10, 10,
11, 12,
11, 23,
105, 3,
106, 66,
107, 11,
+ 108, 10,
108, 13,
108, 14,
108, 25,
* the best back-translation of that SRW error.
*/
static int srw_bib1_map[] = {
+ 10, 108,
66, 238,
/* No doubt there are many more */
0