comparison src/http/ngx_http_core_module.c @ 2424:46d11bff21ef

flush variable values in try_files
author Igor Sysoev <igor@sysoev.ru>
date Wed, 24 Dec 2008 07:14:01 +0000
parents 5bdb1591d37f
children 821497e016b6
comparison
equal deleted inserted replaced
2423:5bdb1591d37f 2424:46d11bff21ef
1080 if (tf->lengths) { 1080 if (tf->lengths) {
1081 ngx_memzero(&e, sizeof(ngx_http_script_engine_t)); 1081 ngx_memzero(&e, sizeof(ngx_http_script_engine_t));
1082 1082
1083 e.ip = tf->lengths->elts; 1083 e.ip = tf->lengths->elts;
1084 e.request = r; 1084 e.request = r;
1085 e.flushed = 1;
1086 1085
1087 /* 1 is for terminating '\0' as in static names */ 1086 /* 1 is for terminating '\0' as in static names */
1088 len = 1; 1087 len = 1;
1089 1088
1090 while (*(uintptr_t *) e.ip) { 1089 while (*(uintptr_t *) e.ip) {
1125 path.len = (name + tf->name.len - 1) - path.data; 1124 path.len = (name + tf->name.len - 1) - path.data;
1126 1125
1127 } else { 1126 } else {
1128 e.ip = tf->values->elts; 1127 e.ip = tf->values->elts;
1129 e.pos = name; 1128 e.pos = name;
1129 e.flushed = 1;
1130 1130
1131 while (*(uintptr_t *) e.ip) { 1131 while (*(uintptr_t *) e.ip) {
1132 code = *(ngx_http_script_code_pt *) e.ip; 1132 code = *(ngx_http_script_code_pt *) e.ip;
1133 code((ngx_http_script_engine_t *) &e); 1133 code((ngx_http_script_engine_t *) &e);
1134 } 1134 }