X-Git-Url: http://lists.indexdata.com/cgi-bin?a=blobdiff_plain;f=src%2Fpazpar2_config.c;h=167424d644d6d3624ae6e755690a59b5726aeec8;hb=464f19c366e6016b3d18cf1cede3805f922417a8;hp=81f0e55da7d6165ba63fbb5ac31c50e0baac26a3;hpb=22a1cf361ec5c4850c74cd1652dd175d833afe0e;p=pazpar2-moved-to-github.git diff --git a/src/pazpar2_config.c b/src/pazpar2_config.c index 81f0e55..167424d 100644 --- a/src/pazpar2_config.c +++ b/src/pazpar2_config.c @@ -150,8 +150,7 @@ struct conf_service *service_init(struct conf_server *server, service->sortkeys = nmem_malloc(nmem, sizeof(struct conf_sortkey) * service->num_sortkeys); - - + service->xml_node = 0; return service; } @@ -743,6 +742,14 @@ static struct conf_service *service_create_static(struct conf_server *server, } } } + + { + xmlBufferPtr buf = xmlBufferCreate(); + xmlNodeDump(buf, node->doc, node, 0, 0); + service->xml_node = + nmem_strdupn(service->nmem, (const char *) buf->content, buf->use); + xmlBufferFree(buf); + } return service; }