diff options
author | Jan Zeleny <jzeleny@redhat.com> | 2010-08-30 13:26:21 +0200 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2010-09-02 12:23:19 -0400 |
commit | 368635f63372bb3b4c0debf8335a3246821ceac6 (patch) | |
tree | 7242d91ce7186d3b9c9d0aa64335c62a4b334473 /src/providers/ldap | |
parent | 13901dfa7292540b8e2475065c7d977a80cb2ae2 (diff) | |
download | sssd-368635f63372bb3b4c0debf8335a3246821ceac6.tar.gz sssd-368635f63372bb3b4c0debf8335a3246821ceac6.tar.bz2 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')
-rw-r--r-- | src/providers/ldap/sdap_async_accounts.c | 2 |
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 ecd074b2..8999ba01 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; |