From ef2b59699aeb7cb032febf83b233b656b97a0e35 Mon Sep 17 00:00:00 2001 From: Tatsuhiko Kubo Date: Wed, 9 Jul 2014 23:22:14 +0900 Subject: [PATCH] Style: use ngx_str_null(). --- src/core/ngx_resolver.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/core/ngx_resolver.c b/src/core/ngx_resolver.c index 645738ce5..42acc83f6 100644 --- 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; }