[nginx] Style: use ngx_str_null().

Maxim Dounin mdounin at mdounin.ru
Wed Jul 9 15:30:40 UTC 2014


details:   http://hg.nginx.org/nginx/rev/f166c521b619
branches:  
changeset: 5764:f166c521b619
user:      Tatsuhiko Kubo <cubicdaiya at gmail.com>
date:      Wed Jul 09 23:22:14 2014 +0900
description:
Style: use ngx_str_null().

diffstat:

 src/core/ngx_resolver.c |  3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diffs (13 lines):

diff --git a/src/core/ngx_resolver.c b/src/core/ngx_resolver.c
--- a/src/core/ngx_resolver.c
+++ b/src/core/ngx_resolver.c
@@ -2722,8 +2722,7 @@ done:
     }
 
     if (len == -1) {
-        name->len = 0;
-        name->data = NULL;
+        ngx_str_null(name);
         return NGX_OK;
     }
 



More information about the nginx-devel mailing list