krb5/fcache: Sprinkle const; note strict aliasing violation.
This commit is contained in:
committed by
Nicolas Williams
parent
7726409b5c
commit
4cb23c61c7
@@ -1306,6 +1306,7 @@ is_default_collection(krb5_context context, const char *name,
|
||||
{
|
||||
krb5_error_code ret;
|
||||
const char *def_loc[2] = { KRB5_DEFAULT_CCNAME_FILE, NULL };
|
||||
const char *const def_loc[2] = { KRB5_DEFAULT_CCNAME_FILE, NULL };
|
||||
const char *sep;
|
||||
size_t namelen;
|
||||
size_t i;
|
||||
@@ -1385,7 +1386,8 @@ fcc_get_cache_first(krb5_context context, krb5_cc_cursor *cursor)
|
||||
* locations.
|
||||
*/
|
||||
if ((ret = is_default_collection(context, def_ccname,
|
||||
(const char **)def_locs,
|
||||
/* XXX strict aliasing violation */
|
||||
(const char * const *)def_locs,
|
||||
&is_def_coll)))
|
||||
goto out;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user