Mercurial > hg > nginx
changeset 4598:01a21ee8f8bb
Don't silently ignore the last line of configuration file that
consists solely of one unterminated token (inspired by #150).
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Wed, 18 Apr 2012 13:30:43 +0000 |
parents | 4be36d5e78ae |
children | f947296f6b2b |
files | src/core/ngx_conf_file.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/core/ngx_conf_file.c Tue Apr 17 09:13:58 2012 +0000 +++ b/src/core/ngx_conf_file.c Wed Apr 18 13:30:43 2012 +0000 @@ -465,7 +465,7 @@ if (cf->conf_file->file.offset >= file_size) { - if (cf->args->nelts > 0) { + if (cf->args->nelts > 0 || !last_space) { if (cf->conf_file->file.fd == NGX_INVALID_FILE) { ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,