Fixed false memset warning on Linux with -O3 (ticket #275).
Prodded by John Leach.
This commit is contained in:
parent
9a4e07356a
commit
e896ec37d9
1 changed files with 5 additions and 2 deletions
|
@ -489,8 +489,11 @@ ngx_http_autoindex_handler(ngx_http_request_t *r)
|
|||
}
|
||||
|
||||
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++ = ' ';
|
||||
|
|
Loading…
Reference in a new issue