Some older platforms (OS X 10.4, glibc 2.2.1) declare unsetenv() as
returning void, as does ksu's compatibility definition of unsetenv().
Don't use the return value in get_configured_defccname().
ticket: 8267
target_version: 1.14
tags: pullup
*target_out = NULL;
- if (unsetenv(KRB5_ENV_CCNAME) != 0) {
- retval = errno;
- com_err(prog_name, retval, _("while clearing the value of %s"),
- KRB5_ENV_CCNAME);
- return retval;
- }
+ unsetenv(KRB5_ENV_CCNAME);
/* Make sure we don't have a cached value for a different uid. */
retval = krb5_cc_set_default_name(context, NULL);