mirror of
https://github.com/nginx/nginx.git
synced 2024-12-05 06:19:01 +08:00
Fixed false memset warning on Linux with -O3 (ticket #275).
Prodded by John Leach.
This commit is contained in:
parent
2761d480a2
commit
d2c9f4554f
@ -489,8 +489,11 @@ ngx_http_autoindex_handler(ngx_http_request_t *r)
|
|||||||
}
|
}
|
||||||
|
|
||||||
b->last = ngx_cpymem(b->last, "</a>", sizeof("</a>") - 1);
|
b->last = ngx_cpymem(b->last, "</a>", sizeof("</a>") - 1);
|
||||||
ngx_memset(b->last, ' ', NGX_HTTP_AUTOINDEX_NAME_LEN - len);
|
|
||||||
b->last += NGX_HTTP_AUTOINDEX_NAME_LEN - len;
|
if (NGX_HTTP_AUTOINDEX_NAME_LEN - len > 0) {
|
||||||
|
ngx_memset(b->last, ' ', NGX_HTTP_AUTOINDEX_NAME_LEN - len);
|
||||||
|
b->last += NGX_HTTP_AUTOINDEX_NAME_LEN - len;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
*b->last++ = ' ';
|
*b->last++ = ' ';
|
||||||
|
Loading…
Reference in New Issue
Block a user