Skip to content

Commit 35894f9

Browse files
committed
Fix compilation
1 parent 2dd7dce commit 35894f9

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/ngx_http_security_headers_module.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ ngx_http_security_headers_filter(ngx_http_request_t *r)
135135
ngx_table_elt_t *h_x_xss;
136136
ngx_table_elt_t *h_x_fo;
137137
ngx_http_security_headers_loc_conf_t *slcf;
138+
ngx_uint_t i;
138139

139140
slcf = ngx_http_get_module_loc_conf(r, ngx_http_security_headers_module);
140141

@@ -216,7 +217,7 @@ ngx_http_security_headers_filter(ngx_http_request_t *r)
216217

217218
part = &r->headers_out.headers.part;
218219
header = part->elts;
219-
for (ngx_uint_t i = 0 ; ; i++ ) {
220+
for ( i = 0 ; ; i++ ) {
220221
if ( i >= part->nelts) {
221222
if ( part->next == NULL ) {
222223
break;

0 commit comments

Comments
 (0)