diff options
author | Sumit Bose <sbose@redhat.com> | 2010-03-24 13:03:19 +0100 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2010-03-25 12:14:14 -0400 |
commit | 7c837ddd5b1737b56fc475f7e347efdb067e2330 (patch) | |
tree | 178162f35109bb3825ddcee8ef09c4252b052139 /src/providers/ldap | |
parent | 541578ee21975ab008db2dcec69bd3c3f8283122 (diff) | |
download | sssd-7c837ddd5b1737b56fc475f7e347efdb067e2330.tar.gz sssd-7c837ddd5b1737b56fc475f7e347efdb067e2330.tar.bz2 sssd-7c837ddd5b1737b56fc475f7e347efdb067e2330.zip |
Fix warnings from -Wmissing-field-initializers
This patch removes some tab-indentations from pamsrv.c, too.
Diffstat (limited to 'src/providers/ldap')
-rw-r--r-- | src/providers/ldap/ldap_auth.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/providers/ldap/ldap_auth.c b/src/providers/ldap/ldap_auth.c index 8c77e3aa..c78f5031 100644 --- a/src/providers/ldap/ldap_auth.c +++ b/src/providers/ldap/ldap_auth.c @@ -57,9 +57,11 @@ static errno_t check_pwexpire_kerberos(const char *expire_date, time_t now, enum sdap_result *result) { char *end; - struct tm tm = {0, 0, 0, 0, 0, 0, 0, 0, 0}; + struct tm tm; time_t expire_time; + memset(&tm, 0, sizeof(tm)); + *result = SDAP_AUTH_FAILED; end = strptime(expire_date, "%Y%m%d%H%M%SZ", &tm); |