# HG changeset patch # User Igor Sysoev # Date 1161371416 0 # Node ID 97e89a42711fc3a1ff4464b025685b93cb752167 # Parent 36f7b549f4810e87f137867e648ec104906402f1 NULL is short way diff --git a/src/http/ngx_http_variables.c b/src/http/ngx_http_variables.c --- a/src/http/ngx_http_variables.c +++ b/src/http/ngx_http_variables.c @@ -367,7 +367,7 @@ ngx_http_get_indexed_variable(ngx_http_r r->variables[index].valid = 0; r->variables[index].not_found = 1; - return &r->variables[index]; + return NULL; }