[nginx] svn commit: r4541 - trunk/src/http

ru at nginx.com ru at nginx.com
Thu Mar 15 19:41:36 UTC 2012


Author: ru
Date: 2012-03-15 19:41:35 +0000 (Thu, 15 Mar 2012)
New Revision: 4541

Log:
Slight optimization in ngx_http_get_variable_index().


Modified:
   trunk/src/http/ngx_http_variables.c

Modified: trunk/src/http/ngx_http_variables.c
===================================================================
--- trunk/src/http/ngx_http_variables.c	2012-03-15 19:37:32 UTC (rev 4540)
+++ trunk/src/http/ngx_http_variables.c	2012-03-15 19:41:35 UTC (rev 4541)
@@ -384,7 +384,7 @@
     v->flags = 0;
     v->index = cmcf->variables.nelts - 1;
 
-    return cmcf->variables.nelts - 1;
+    return v->index;
 }
 
 



More information about the nginx-devel mailing list