Don't silently ignore the last line of configuration file that consists solely of one unterminated token (inspired by #150).
diff --git a/src/core/ngx_conf_file.c b/src/core/ngx_conf_file.c index bb39f42..892fa47 100644 --- a/src/core/ngx_conf_file.c +++ b/src/core/ngx_conf_file.c
@@ -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,