]> git.kaiwu.me - nginx.git/commitdiff
Use %s for errors returned from configuration parsing handlers.
authorRuslan Ermilov <ru@nginx.com>
Tue, 25 Dec 2018 12:26:58 +0000 (15:26 +0300)
committerRuslan Ermilov <ru@nginx.com>
Tue, 25 Dec 2018 12:26:58 +0000 (15:26 +0300)
src/core/ngx_conf_file.c

index e92cd33c91b5f0545d0e08ade4299a5fb3456c00..6d1629e9b41d9c86770c12e0927a16183a86f0b6 100644 (file)
@@ -310,7 +310,7 @@ ngx_conf_parse(ngx_conf_t *cf, ngx_str_t *filename)
                 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;
         }