krb5 commit [krb5-1.11]: Fix condition with empty body
Tom Yu
tlyu at MIT.EDU
Wed Apr 3 19:47:12 EDT 2013
https://github.com/krb5/krb5/commit/cf230ac083d298f260531b48d7cbae8dd211c0e2
commit cf230ac083d298f260531b48d7cbae8dd211c0e2
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)
ticket: 7591
version_fixed: 1.11.2
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 00b45f8..b85b67d 100644
--- a/src/lib/kdb/keytab.c
+++ b/src/lib/kdb/keytab.c
@@ -41,8 +41,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