mirror of
https://github.com/libssh2/libssh2.git
synced 2025-11-21 14:00:51 +03:00
libssh2_session_supported_algs: fix compiler warning
This commit is contained in:
committed by
Daniel Stenberg
parent
511a972a95
commit
e68c895fc4
@@ -1997,7 +1997,7 @@ LIBSSH2_API int libssh2_session_supported_algs(LIBSSH2_SESSION* session,
|
|||||||
/* correct number of pointers copied? (test the code above) */
|
/* correct number of pointers copied? (test the code above) */
|
||||||
if ( j!=ialg ) {
|
if ( j!=ialg ) {
|
||||||
/* deallocate buffer */
|
/* deallocate buffer */
|
||||||
LIBSSH2_FREE(session, *algs);
|
LIBSSH2_FREE(session, (void *)*algs);
|
||||||
*algs = NULL;
|
*algs = NULL;
|
||||||
|
|
||||||
return _libssh2_error(session, LIBSSH2_ERROR_BAD_USE,
|
return _libssh2_error(session, LIBSSH2_ERROR_BAD_USE,
|
||||||
|
|||||||
Reference in New Issue
Block a user