summaryrefslogtreecommitdiffstats
path: root/src/providers/ldap/sdap_async_accounts.c
diff options
context:
space:
mode:
authorJan Zeleny <jzeleny@redhat.com>2010-08-30 13:26:21 +0200
committerStephen Gallagher <sgallagh@redhat.com>2010-09-02 12:23:19 -0400
commit368635f63372bb3b4c0debf8335a3246821ceac6 (patch)
tree7242d91ce7186d3b9c9d0aa64335c62a4b334473 /src/providers/ldap/sdap_async_accounts.c
parent13901dfa7292540b8e2475065c7d977a80cb2ae2 (diff)
downloadsssd-368635f63372bb3b4c0debf8335a3246821ceac6.tar.gz
sssd-368635f63372bb3b4c0debf8335a3246821ceac6.tar.xz
sssd-368635f63372bb3b4c0debf8335a3246821ceac6.zip
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
Diffstat (limited to 'src/providers/ldap/sdap_async_accounts.c')
-rw-r--r--src/providers/ldap/sdap_async_accounts.c2
1 files changed, 1 insertions, 1 deletions
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;