]> git.kaiwu.me - nginx.git/commit
Access log: fix default value, broken by cb308813b453.
authorPiotr Sikora <piotr@cloudflare.com>
Tue, 3 Jun 2014 17:53:48 +0000 (10:53 -0700)
committerPiotr Sikora <piotr@cloudflare.com>
Tue, 3 Jun 2014 17:53:48 +0000 (10:53 -0700)
commita1a8defb4956ce5416ff633c47da2dc4d473fac0
tree2c25bc4d32719bf3fea00372c8e8d70bd58a6db6
parentafb4aafc6e42781068ce3f23d22fd6e2012787c7
Access log: fix default value, broken by cb308813b453.

log->filter ("if" parameter) was uninitialized when the default value
was being used, which would lead to a crash (SIGSEGV) when access_log
directive wasn't specified in the configuration.

Zero-fill the whole structure instead of zeroing fields one-by-one
in order to prevent similar issues in the future.

Signed-off-by: Piotr Sikora <piotr@cloudflare.com>
src/http/modules/ngx_http_log_module.c