# HG changeset patch # User Maxim Dounin # Date 1341243568 0 # Node ID bd45a98ff226b42c0d3a3bd8281c8e0be0a9e51f # Parent d1415d1e7a6b0e4d5f620343f7e3cc1d76e43406 Merge of r4647: xslt reuse. Fixed the reuse of parsed DTDs and XSLTs. Patch by Kuramoto Eiji. diff -r d1415d1e7a6b -r bd45a98ff226 src/http/modules/ngx_http_xslt_filter_module.c --- a/src/http/modules/ngx_http_xslt_filter_module.c Mon Jul 02 15:37:49 2012 +0000 +++ b/src/http/modules/ngx_http_xslt_filter_module.c Mon Jul 02 15:39:28 2012 +0000 @@ -810,7 +810,7 @@ file = xmcf->dtd_files.elts; for (i = 0; i < xmcf->dtd_files.nelts; i++) { - if (ngx_strcmp(file[i].name, &value[1].data) == 0) { + if (ngx_strcmp(file[i].name, value[1].data) == 0) { xlcf->dtd = file[i].data; return NGX_CONF_OK; } @@ -884,7 +884,7 @@ file = xmcf->sheet_files.elts; for (i = 0; i < xmcf->sheet_files.nelts; i++) { - if (ngx_strcmp(file[i].name, &value[1].data) == 0) { + if (ngx_strcmp(file[i].name, value[1].data) == 0) { sheet->stylesheet = file[i].data; goto found; }