From: Andreas Schneider Date: Thu, 5 Jul 2018 16:02:48 +0000 (+0200) Subject: winbind_krb5_localauth: Fix a compiler warning X-Git-Tag: tevent-0.9.37~74 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e8b7aecf460a0c09cadbefda0a9b5fe1432f4089;p=thirdparty%2Fsamba.git winbind_krb5_localauth: Fix a compiler warning 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 --- 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;