diff options
author | Andreas Schneider <asn@samba.org> | 2018-07-05 18:02:48 +0200 |
---|---|---|
committer | Ralph Boehme <slow@samba.org> | 2018-07-07 16:24:30 +0200 |
commit | e8b7aecf460a0c09cadbefda0a9b5fe1432f4089 (patch) | |
tree | 0dbe8d1cadae6583c617a19fd77ea6a770b0094c /nsswitch/krb5_plugin | |
parent | 0a91ade5272698c094137fa28d2ad4723b5963cf (diff) | |
download | samba-e8b7aecf460a0c09cadbefda0a9b5fe1432f4089.tar.gz |
winbind_krb5_localauth: Fix a compiler warning
This can't used uninitialized but some compiler complains about it.
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Ralph Böhme <slow@samba.org>
Autobuild-Date(master): Sat Jul 7 16:24:30 CEST 2018 on sn-devel-144
Diffstat (limited to 'nsswitch/krb5_plugin')
-rw-r--r-- | nsswitch/krb5_plugin/winbind_krb5_localauth.c | 4 |
1 files 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; |