match_entries() in ktfns.c admits uninitialized use of match if the
loop runs for zero iterations (the keytab is valid but contains no
entries). Initialize match to false to properly handle this case.
Fixes a -Werror compilation failure on macOS 10.6.8 reported by Sergey
Fedorov.
krb5_error_code ret;
krb5_keytab_entry ent;
krb5_kt_cursor cursor;
- krb5_boolean match;
+ krb5_boolean match = FALSE;
/* Scan the keytab for host-based entries matching accprinc. */
ret = krb5_kt_start_seq_get(context, keytab, &cursor);