mirror of
https://github.com/libssh2/libssh2.git
synced 2025-11-23 01:22:37 +03:00
scp_recv: remove dead assignment
Instead of assigning a variable we won't read, we now use the more explicit (void) prefix.
This commit is contained in:
@@ -421,7 +421,7 @@ scp_recv(LIBSSH2_SESSION * session, const char *path, struct stat * sb)
|
||||
session->scpRecv_err_len + 1);
|
||||
|
||||
/* Read the remote error message */
|
||||
rc = _libssh2_channel_read(session->scpRecv_channel, 0,
|
||||
(void)_libssh2_channel_read(session->scpRecv_channel, 0,
|
||||
session->scpRecv_err_msg,
|
||||
session->scpRecv_err_len);
|
||||
/* If it failed for any reason, we ignore it anyway. */
|
||||
|
||||
Reference in New Issue
Block a user