comparison src/http/modules/ngx_http_scgi_module.c @ 4947:4251e72b8bb4

Allow the complex value to be defined as an empty string. This makes conversion from strings to complex values possible without the loss of functionality.
author Ruslan Ermilov <ru@nginx.com>
date Thu, 06 Dec 2012 23:03:53 +0000
parents 5a44d638cd27
children fd84344f1df7
comparison
equal deleted inserted replaced
4946:2570296374b4 4947:4251e72b8bb4
1769 ngx_str_t *value; 1769 ngx_str_t *value;
1770 ngx_http_compile_complex_value_t ccv; 1770 ngx_http_compile_complex_value_t ccv;
1771 1771
1772 value = cf->args->elts; 1772 value = cf->args->elts;
1773 1773
1774 if (scf->cache_key.value.len) { 1774 if (scf->cache_key.value.data) {
1775 return "is duplicate"; 1775 return "is duplicate";
1776 } 1776 }
1777 1777
1778 ngx_memzero(&ccv, sizeof(ngx_http_compile_complex_value_t)); 1778 ngx_memzero(&ccv, sizeof(ngx_http_compile_complex_value_t));
1779 1779