mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-08-07 08:02:55 +03:00
pki: Make a strcmp better readable.
This commit is contained in:
@@ -230,7 +230,7 @@ char *ssh_find_matching(const char *available_d, const char *preferred_d){
|
||||
|
||||
for(i_pref=0; tok_preferred[i_pref] ; ++i_pref){
|
||||
for(i_avail=0; tok_available[i_avail]; ++i_avail){
|
||||
if(!strcmp(tok_available[i_avail],tok_preferred[i_pref])){
|
||||
if(strcmp(tok_available[i_avail],tok_preferred[i_pref]) == 0){
|
||||
/* match */
|
||||
ret=strdup(tok_available[i_avail]);
|
||||
/* free the tokens */
|
||||
|
Reference in New Issue
Block a user