# HG changeset patch # User Maxim Dounin # Date 1439904365 -10800 # Node ID 5f2a0739da19cae467e30b572a6c668ecc49d366 # Parent 5def760fe95ee295871aa123308890b0f3f01c98 Perl: fixed warning about "sep" may be used uninitialized. diff --git a/src/http/modules/perl/nginx.xs b/src/http/modules/perl/nginx.xs --- a/src/http/modules/perl/nginx.xs +++ b/src/http/modules/perl/nginx.xs @@ -268,18 +268,15 @@ header_in(r, key) } #endif - if (hh->offset) { + ph = (ngx_table_elt_t **) ((char *) &r->headers_in + hh->offset); - ph = (ngx_table_elt_t **) ((char *) &r->headers_in + hh->offset); + if (*ph) { + ngx_http_perl_set_targ((*ph)->value.data, (*ph)->value.len); - if (*ph) { - ngx_http_perl_set_targ((*ph)->value.data, (*ph)->value.len); + goto done; + } - goto done; - } - - XSRETURN_UNDEF; - } + XSRETURN_UNDEF; multi: