X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fsolr.c;h=807326e7e172775232addf7f34603179263e2f77;hb=cff93bfc3cff822251abf7687bb5791a81b2bf0c;hp=33c81b0a1f7189ca3a6a2ef77a1211893100fffb;hpb=44fa6a1823276d0f45796404e0fc5423a6a7f71d;p=yaz-moved-to-github.git diff --git a/src/solr.c b/src/solr.c index 33c81b0..807326e 100644 --- a/src/solr.c +++ b/src/solr.c @@ -135,7 +135,7 @@ static Z_AttributeList *yaz_solr_use_atttribute_create(ODR o, const char *name) elements[0]->value.complex->list = (Z_StringOrNumeric **) odr_malloc(o, 1 * sizeof(Z_StringOrNumeric *)); elements[0]->value.complex->list[0] = (Z_StringOrNumeric *) odr_malloc(o, sizeof(Z_StringOrNumeric)); elements[0]->value.complex->list[0]->which = Z_StringOrNumeric_string; - elements[0]->value.complex->list[0]->u.string = (Z_InternationalString *) name; + elements[0]->value.complex->list[0]->u.string = (Z_InternationalString *) odr_strdup(o, name); elements[0]->value.complex->semanticAction = 0; elements[0]->value.complex->num_semanticAction = 0; attributes->attributes = elements;