From f5cf6fa478f2dde957b052739a11d45dcdd0e111 Mon Sep 17 00:00:00 2001 From: Craig Tiller <craig.tiller@gmail.com> Date: Tue, 25 Aug 2015 13:31:00 -0700 Subject: [PATCH] Assert uri not null --- src/core/client_config/resolver_registry.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/client_config/resolver_registry.c b/src/core/client_config/resolver_registry.c index af263df26a..886ca5d06d 100644 --- a/src/core/client_config/resolver_registry.c +++ b/src/core/client_config/resolver_registry.c @@ -90,6 +90,7 @@ static grpc_resolver_factory *resolve_factory(const char *target, char *tmp; grpc_resolver_factory *factory = NULL; + GPR_ASSERT(uri); *uri = grpc_uri_parse(target, 1); factory = lookup_factory(*uri); if (factory == NULL) { -- GitLab