From 368635f63372bb3b4c0debf8335a3246821ceac6 Mon Sep 17 00:00:00 2001 From: Jan Zeleny Date: Mon, 30 Aug 2010 13:26:21 +0200 Subject: Fixed printing of undefined value in sdap_async_accounts.c If sysdb_attrs_get_el() call failed in function sdap_save_group(), it would result in printing an undefined value of variable name. This is now fixed by initializing the variable. Ticket: #579 --- src/providers/ldap/sdap_async_accounts.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/providers') diff --git a/src/providers/ldap/sdap_async_accounts.c b/src/providers/ldap/sdap_async_accounts.c index ecd074b22..8999ba015 100644 --- a/src/providers/ldap/sdap_async_accounts.c +++ b/src/providers/ldap/sdap_async_accounts.c @@ -613,7 +613,7 @@ static int sdap_save_group(TALLOC_CTX *memctx, { struct ldb_message_element *el; struct sysdb_attrs *group_attrs; - const char *name; + const char *name = NULL; long int l; gid_t gid; int ret; -- cgit