diff options
author | Maxim Dounin <mdounin@mdounin.ru> | 2015-08-18 16:26:05 +0300 |
---|---|---|
committer | Maxim Dounin <mdounin@mdounin.ru> | 2015-08-18 16:26:05 +0300 |
commit | a0aea61b50e90adf94b713cef4b789f932107107 (patch) | |
tree | 7f548afed0a50b4fa399c64e2c31c82f1a09eda4 /src | |
parent | 07d7ecb8b2e8725f57da13bc8efde8171ba38cd6 (diff) | |
download | nginx-a0aea61b50e90adf94b713cef4b789f932107107.tar.gz nginx-a0aea61b50e90adf94b713cef4b789f932107107.zip |
Perl: fixed warning about "sep" may be used uninitialized.
Diffstat (limited to 'src')
-rw-r--r-- | src/http/modules/perl/nginx.xs | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/src/http/modules/perl/nginx.xs b/src/http/modules/perl/nginx.xs index 71f17a8bb..ae8584502 100644 --- a/src/http/modules/perl/nginx.xs +++ b/src/http/modules/perl/nginx.xs @@ -268,19 +268,16 @@ 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); - - goto done; - } + if (*ph) { + ngx_http_perl_set_targ((*ph)->value.data, (*ph)->value.len); - XSRETURN_UNDEF; + goto done; } + XSRETURN_UNDEF; + multi: /* Cookie, X-Forwarded-For */ |