diff src/http/ngx_http_upstream_round_robin.c @ 1489:56f1ea5baabb

u_char* is enough to keep file name
author Igor Sysoev <igor@sysoev.ru>
date Sat, 15 Sep 2007 17:11:06 +0000
parents a9132739bb57
children 9ea31a2eab27
line wrap: on
line diff
--- a/src/http/ngx_http_upstream_round_robin.c
+++ b/src/http/ngx_http_upstream_round_robin.c
@@ -136,7 +136,7 @@ ngx_http_upstream_init_round_robin(ngx_c
     if (us->port == 0 && us->default_port == 0) {
         ngx_log_error(NGX_LOG_EMERG, cf->log, 0,
                       "no port in upstream \"%V\" in %s:%ui",
-                      &us->host, us->file_name.data, us->line);
+                      &us->host, us->file_name, us->line);
         return NGX_ERROR;
     }
 
@@ -149,7 +149,7 @@ ngx_http_upstream_init_round_robin(ngx_c
         if (u.err) {
             ngx_log_error(NGX_LOG_EMERG, cf->log, 0,
                           "%s in upstream \"%V\" in %s:%ui",
-                          u.err, &us->host, us->file_name.data, us->line);
+                          u.err, &us->host, us->file_name, us->line);
         }
 
         return NGX_ERROR;