summaryrefslogtreecommitdiff
path: root/lib/vssh/libssh2.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2021-01-11 09:18:30 +0100
committerDaniel Stenberg <daniel@haxx.se>2021-01-11 12:32:58 +0100
commit057cb05b4bb6dfbd52c204e0627e4bd7efa57347 (patch)
tree8a673abeced6242a62cbcff8b0866989ab7969c6 /lib/vssh/libssh2.c
parent6cb803ecb10224d5a0edb090edaa9ebd16c15f33 (diff)
downloadcurl-057cb05b4bb6dfbd52c204e0627e4bd7efa57347.tar.gz
libssh2: fix "Value stored to 'readdir_len' is never read"
Detected by scan-build
Diffstat (limited to 'lib/vssh/libssh2.c')
-rw-r--r--lib/vssh/libssh2.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/vssh/libssh2.c b/lib/vssh/libssh2.c
index ac2af07af..4164c8a09 100644
--- a/lib/vssh/libssh2.c
+++ b/lib/vssh/libssh2.c
@@ -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 */