diff --git a/ngx_http_zip_file.c b/ngx_http_zip_file.c index 866b643..7b0b74b 100644 --- a/ngx_http_zip_file.c +++ b/ngx_http_zip_file.c @@ -223,7 +223,6 @@ ngx_http_zip_generate_pieces(ngx_http_request_t *r, ngx_http_zip_ctx_t *ctx) #ifdef NGX_ZIP_HAVE_ICONV if (ctx->unicode_path) { size_t inlen = file->filename.len, outlen, outleft; - size_t res; u_char *p, *in; //inbuf @@ -243,8 +242,7 @@ ngx_http_zip_generate_pieces(ngx_http_request_t *r, ngx_http_zip_ctx_t *ctx) iconv(iconv_cd, NULL, NULL, NULL, NULL); //convert the string - res = iconv(iconv_cd, (char **)&in, &inlen, (char **)&p, &outleft); - //XXX if (res == (size_t)-1) { ? } + iconv(iconv_cd, (char **)&in, &inlen, (char **)&p, &outleft); file->filename.len = outlen - outleft; diff --git a/ngx_http_zip_headers.c b/ngx_http_zip_headers.c index a89da39..b9e7eba 100644 --- a/ngx_http_zip_headers.c +++ b/ngx_http_zip_headers.c @@ -196,10 +196,8 @@ ngx_http_zip_add_partial_content_range(ngx_http_request_t *r, ngx_int_t ngx_http_zip_strip_range_header(ngx_http_request_t *r) { - ngx_list_part_t *part; ngx_table_elt_t *header; - part = &r->headers_in.headers.part; header = r->headers_in.range; if (header) {