]> git.kaiwu.me - nginx.git/commitdiff
NULL is short way
authorIgor Sysoev <igor@sysoev.ru>
Fri, 20 Oct 2006 19:10:16 +0000 (19:10 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Fri, 20 Oct 2006 19:10:16 +0000 (19:10 +0000)
src/http/ngx_http_variables.c

index 48b46f07d1cef519cdb13cb60ed5f603db1b6a8c..12014582943a64cfc253c3f19bee20cdfa198413 100644 (file)
@@ -367,7 +367,7 @@ ngx_http_get_indexed_variable(ngx_http_request_t *r, ngx_uint_t index)
     r->variables[index].valid = 0;
     r->variables[index].not_found = 1;
 
-    return &r->variables[index];
+    return NULL;
 }