summaryrefslogtreecommitdiffstats
path: root/src/providers/ldap/ldap_auth.c
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2010-03-24 13:03:19 +0100
committerStephen Gallagher <sgallagh@redhat.com>2010-03-25 12:14:14 -0400
commit7c837ddd5b1737b56fc475f7e347efdb067e2330 (patch)
tree178162f35109bb3825ddcee8ef09c4252b052139 /src/providers/ldap/ldap_auth.c
parent541578ee21975ab008db2dcec69bd3c3f8283122 (diff)
downloadsssd-7c837ddd5b1737b56fc475f7e347efdb067e2330.tar.gz
sssd-7c837ddd5b1737b56fc475f7e347efdb067e2330.tar.xz
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/ldap_auth.c')
-rw-r--r--src/providers/ldap/ldap_auth.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/providers/ldap/ldap_auth.c b/src/providers/ldap/ldap_auth.c
index 8c77e3aa6..c78f50313 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);