diff options
author | Lukas Slebodnik <lslebodn@redhat.com> | 2013-09-10 10:07:51 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-09-10 17:32:33 +0200 |
commit | c1f94194a9fee8582a0af3b151b4f2b14fa1019a (patch) | |
tree | de1326803521719f93bcf8baebf13cf91cf7ae5c /src | |
parent | fbc419b2eb101c7491324499a698b6bdcb14ad43 (diff) | |
download | sssd-c1f94194a9fee8582a0af3b151b4f2b14fa1019a.tar.gz sssd-c1f94194a9fee8582a0af3b151b4f2b14fa1019a.tar.bz2 sssd-c1f94194a9fee8582a0af3b151b4f2b14fa1019a.zip |
krb5: Fix warning sometimes uninitialized
warning: variable 'ret' is used uninitialized whenever
'if' condition is false
if (kerr) {
^~~~
Diffstat (limited to 'src')
-rw-r--r-- | src/providers/krb5/krb5_utils.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/providers/krb5/krb5_utils.c b/src/providers/krb5/krb5_utils.c index bb933d7f..d0968735 100644 --- a/src/providers/krb5/krb5_utils.c +++ b/src/providers/krb5/krb5_utils.c @@ -851,6 +851,8 @@ static errno_t sss_destroy_ccache(struct sss_krb5_ccache *cc) KRB5_DEBUG(SSSDBG_OP_FAILURE, cc->context, kerr); DEBUG(SSSDBG_CRIT_FAILURE, ("krb5_cc_destroy failed.\n")); ret = EIO; + } else { + ret = EOK; } /* krb5_cc_destroy frees cc->ccache in all events */ |