diff options
author | David Benjamin <davidben@mit.edu> | 2013-03-13 01:08:01 -0400 |
---|---|---|
committer | Tom Yu <tlyu@mit.edu> | 2013-04-12 17:15:55 -0400 |
commit | 63b5902e83eb7d47f2eb061acde2566ec1d45bc8 (patch) | |
tree | 9b734b90af8716fd3a396729724fce39ef171bd2 /src/lib | |
parent | 8ee70ec63931d1e38567905387ab9b1d45734d81 (diff) | |
download | krb5-63b5902e83eb7d47f2eb061acde2566ec1d45bc8.zip krb5-63b5902e83eb7d47f2eb061acde2566ec1d45bc8.tar.gz krb5-63b5902e83eb7d47f2eb061acde2566ec1d45bc8.tar.bz2 |
Fix condition with empty body
Found by clang's warnings.
(cherry picked from commit 18796a2eb6c05706c6635453b3e425955aab93f4)
ticket: 7606 (new)
version_fixed: 1.10.5
status: resolved
Diffstat (limited to 'src/lib')
-rw-r--r-- | 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; } |