1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-23 08:38:49 -05:00

libssh2: fix "Value stored to 'readdir_len' is never read"

Detected by scan-build
This commit is contained in:
Daniel Stenberg 2021-01-11 09:18:30 +01:00
parent 6cb803ecb1
commit 057cb05b4b
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -2223,7 +2223,6 @@ static CURLcode ssh_statemach_act(struct connectdata *conn, bool *block)
if(rc == LIBSSH2_ERROR_EAGAIN) {
break;
}
readdir_len = (size_t) rc;
Curl_dyn_free(&sshc->readdir_link);
/* append filename and extra output */