diff --git a/test/core/surface/server_test.c b/test/core/surface/server_test.c
index 6dd8a435aa08d91dfb3b1d389be43449d2e7b5ab..3fd1c2c26636b07445a258b04648572abbf664c1 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) {