aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorGravatar yang-g <yangg@google.com>2016-07-06 16:17:37 -0700
committerGravatar yang-g <yangg@google.com>2016-07-06 16:18:16 -0700
commitf710ba0095147646503ae9ae3802375602412175 (patch)
tree6b06a1cc157a07874e99dc532a4eaabe91db5819 /test
parent2a16a028e019408e0670b82488458df20298760e (diff)
Initialize variable.
Diffstat (limited to 'test')
-rw-r--r--test/core/surface/server_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/core/surface/server_test.c b/test/core/surface/server_test.c
index 6dd8a435aa..3fd1c2c266 100644
--- a/test/core/surface/server_test.c
+++ b/test/core/surface/server_test.c
@@ -139,7 +139,7 @@ void test_bind_server_to_addr(const char *host, bool secure) {
}
static int external_dns_works(const char *host) {
- grpc_resolved_addresses *res;
+ grpc_resolved_addresses *res = NULL;
grpc_error *error = grpc_blocking_resolve_address(host, "80", &res);
GRPC_ERROR_UNREF(error);
if (res != NULL) {