aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2017-02-22 22:59:48 -0800
committerGravatar GitHub <noreply@github.com>2017-02-22 22:59:48 -0800
commitcff371aa2e8dad8bf556fb3f860e45e1e483bae7 (patch)
tree2484c3fa6fc03fe3bbb1b086ab2968f74dd44f6e
parentd82c18894a2d142fed92fe40f297277f91c681e3 (diff)
parenta2b0e56823f0415912f964bff6a4ce02002dcb33 (diff)
Merge pull request #9794 from eduherminio/master
Fix compile error - possible uninitialized variable
-rw-r--r--src/core/lib/surface/server.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/lib/surface/server.c b/src/core/lib/surface/server.c
index e936e2015c..7210c69fb0 100644
--- a/src/core/lib/surface/server.c
+++ b/src/core/lib/surface/server.c
@@ -1198,7 +1198,9 @@ void grpc_server_setup_transport(grpc_exec_ctx *exec_ctx, grpc_server *s,
crm->server_registered_method = rm;
crm->flags = rm->flags;
crm->has_host = has_host;
- crm->host = host;
+ if (has_host) {
+ crm->host = host;
+ }
crm->method = method;
}
GPR_ASSERT(slots <= UINT32_MAX);