From e8b7aecf460a0c09cadbefda0a9b5fe1432f4089 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Thu, 5 Jul 2018 18:02:48 +0200 Subject: [PATCH] winbind_krb5_localauth: Fix a compiler warning MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This can't used uninitialized but some compiler complains about it. Signed-off-by: Andreas Schneider Reviewed-by: Jeremy Allison Autobuild-User(master): Ralph Böhme Autobuild-Date(master): Sat Jul 7 16:24:30 CEST 2018 on sn-devel-144 --- nsswitch/krb5_plugin/winbind_krb5_localauth.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nsswitch/krb5_plugin/winbind_krb5_localauth.c b/nsswitch/krb5_plugin/winbind_krb5_localauth.c index 7c77609710a..b412575e4fe 100644 --- a/nsswitch/krb5_plugin/winbind_krb5_localauth.c +++ b/nsswitch/krb5_plugin/winbind_krb5_localauth.c @@ -84,8 +84,8 @@ static krb5_error_code winbind_userok(krb5_context context, krb5_error_code code = 0; char *princ_str = NULL; struct passwd *pwd = NULL; - uid_t princ_uid; - uid_t lname_uid; + uid_t princ_uid = (uid_t)-1; + uid_t lname_uid = (uid_t)-1; wbcErr wbc_status; int cmp; -- 2.34.1