diff src/http/ngx_http_upstream.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 0a269c464eaf
children 8596627c4cc5
line wrap: on
line diff
--- a/src/http/ngx_http_upstream.c	Sat Sep 15 16:54:58 2007 +0000
+++ b/src/http/ngx_http_upstream.c	Sat Sep 15 17:11:06 2007 +0000
@@ -3223,7 +3223,7 @@
             ngx_log_error(NGX_LOG_WARN, cf->log, 0,
                           "upstream \"%V\" may not have port %d in %s:%ui",
                           &u->host, uscfp[i]->port,
-                          uscfp[i]->file_name.data, uscfp[i]->line);
+                          uscfp[i]->file_name, uscfp[i]->line);
             return NULL;
         }
 
@@ -3247,7 +3247,7 @@
 
     uscf->flags = flags;
     uscf->host = u->host;
-    uscf->file_name = cf->conf_file->file.name;
+    uscf->file_name = cf->conf_file->file.name.data;
     uscf->line = cf->conf_file->line;
     uscf->port = u->port;
     uscf->default_port = u->default_port;