Skip to content
Permalink
Browse files

Remove unneeded call to strlen

  • Loading branch information...
orgads committed May 31, 2019
1 parent 86e52ba commit ab3afd88df1e2da7a201434a555bbddfbc176d4c
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/kex.c
@@ -4296,7 +4296,7 @@ libssh2_session_method_pref(LIBSSH2_SESSION * session, int method_type,
}
}

if(strlen(newprefs) == 0) {
if(!*newprefs) {
LIBSSH2_FREE(session, newprefs);
return _libssh2_error(session, LIBSSH2_ERROR_METHOD_NOT_SUPPORTED,
"The requested method(s) are not currently "

0 comments on commit ab3afd8

Please sign in to comment.
You can’t perform that action at this time.