From 40dd828529cf01291daf0f075b850783409e8c05 Mon Sep 17 00:00:00 2001 From: Pavel Reichl Date: Tue, 28 Jan 2014 17:19:07 +0000 Subject: refactor calls of sss_parse_name sss_parse_name now supports NULL as output parameters so existing calls passing arguments which were never read were substituted by NULL. Reviewed-by: Jakub Hrozek --- src/util/domain_info_utils.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/util') diff --git a/src/util/domain_info_utils.c b/src/util/domain_info_utils.c index b41864432..fc4287076 100644 --- a/src/util/domain_info_utils.c +++ b/src/util/domain_info_utils.c @@ -160,7 +160,6 @@ find_subdomain_by_object_name(struct sss_domain_info *domain, TALLOC_CTX *tmp_ctx; struct sss_domain_info *dom = NULL; char *domainname = NULL; - char *name = NULL; errno_t ret; tmp_ctx = talloc_new(NULL); @@ -170,7 +169,7 @@ find_subdomain_by_object_name(struct sss_domain_info *domain, } ret = sss_parse_name(tmp_ctx, domain->names, object_name, - &domainname, &name); + &domainname, NULL); if (ret != EOK) { DEBUG(SSSDBG_CRIT_FAILURE, "Unable to parse name '%s' [%d]: %s\n", object_name, ret, sss_strerror(ret)); -- cgit