Skip to content

Commit

Permalink
Fix condition with empty body
Browse files Browse the repository at this point in the history
Found by clang's warnings.

ticket: 7591 (new)
target_version: 1.11.2
tags: pullup
  • Loading branch information
davidben authored and greghudson committed Mar 15, 2013
1 parent fae4c73 commit 18796a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/kdb/keytab.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 18796a2

Please sign in to comment.