krb5 commit [krb5-1.9]: Fix condition with empty body
Tom Yu
tlyu at MIT.EDU
Tue Apr 23 23:08:38 EDT 2013
https://github.com/krb5/krb5/commit/8dfe94281249a1b16ec725be2ade382092168b82
commit 8dfe94281249a1b16ec725be2ade382092168b82
Author: David Benjamin <davidben at mit.edu>
Date: Wed Mar 13 01:08:01 2013 -0400
Fix condition with empty body
Found by clang's warnings.
(cherry picked from commit 18796a2eb6c05706c6635453b3e425955aab93f4)
(cherry picked from commit 63b5902e83eb7d47f2eb061acde2566ec1d45bc8)
ticket: 7623 (new)
version_fixed: 1.9.5
status: resolved
src/lib/kdb/keytab.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/lib/kdb/keytab.c b/src/lib/kdb/keytab.c
index dbbbe75..76feacc 100644
--- a/src/lib/kdb/keytab.c
+++ b/src/lib/kdb/keytab.c
@@ -42,8 +42,8 @@ static krb5_error_code
krb5_ktkdb_get_name(krb5_context context, krb5_keytab keytab,
char *name, unsigned int namelen)
{
- if (strlcpy(name, "KDB:", namelen) >= namelen);
- return KRB5_KT_NAME_TOOLONG;
+ if (strlcpy(name, "KDB:", namelen) >= namelen)
+ return KRB5_KT_NAME_TOOLONG;
return 0;
}
More information about the cvs-krb5
mailing list