summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMaxim Dounin <mdounin@mdounin.ru>2012-07-02 15:39:28 +0000
committerMaxim Dounin <mdounin@mdounin.ru>2012-07-02 15:39:28 +0000
commit049447b2670b5a133a3c7a3ff3fa1f11095a1b72 (patch)
treee2dc2c9972817d307832474b31fc916803fb65d5
parentef03533f89435d9490e3bc3c6fa13a3720339e0a (diff)
downloadnginx-049447b2670b5a133a3c7a3ff3fa1f11095a1b72.tar.gz
nginx-049447b2670b5a133a3c7a3ff3fa1f11095a1b72.tar.bz2
Merge of r4647: xslt reuse.
Fixed the reuse of parsed DTDs and XSLTs. Patch by Kuramoto Eiji.
-rw-r--r--src/http/modules/ngx_http_xslt_filter_module.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/http/modules/ngx_http_xslt_filter_module.c b/src/http/modules/ngx_http_xslt_filter_module.c
index 4309a4489..9b0354b2e 100644
--- a/src/http/modules/ngx_http_xslt_filter_module.c
+++ b/src/http/modules/ngx_http_xslt_filter_module.c
@@ -810,7 +810,7 @@ ngx_http_xslt_entities(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
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 @@ ngx_http_xslt_stylesheet(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
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;
}