[nginx] Use %s for errors returned from configuration parsing handlers.

Ruslan Ermilov ru at nginx.com
Thu Jan 31 15:33:42 UTC 2019


details:   https://hg.nginx.org/nginx/rev/d864ee67b5ae
branches:  
changeset: 7451:d864ee67b5ae
user:      Ruslan Ermilov <ru at nginx.com>
date:      Tue Dec 25 15:26:58 2018 +0300
description:
Use %s for errors returned from configuration parsing handlers.

diffstat:

 src/core/ngx_conf_file.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 2d9ab7717e23 -r d864ee67b5ae src/core/ngx_conf_file.c
--- a/src/core/ngx_conf_file.c	Wed Jan 30 19:28:27 2019 +0300
+++ b/src/core/ngx_conf_file.c	Tue Dec 25 15:26:58 2018 +0300
@@ -310,7 +310,7 @@ ngx_conf_parse(ngx_conf_t *cf, ngx_str_t
                 goto failed;
             }
 
-            ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, rv);
+            ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, "%s", rv);
 
             goto failed;
         }


More information about the nginx-devel mailing list