From 057cb05b4bb6dfbd52c204e0627e4bd7efa57347 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 11 Jan 2021 09:18:30 +0100 Subject: [PATCH] libssh2: fix "Value stored to 'readdir_len' is never read" Detected by scan-build --- lib/vssh/libssh2.c | 1 - 1 file changed, 1 deletion(-) 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 */