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
1 changed files with 0 additions and 1 deletions

View File

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