]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
libssh2: fix "Value stored to 'readdir_len' is never read"
authorDaniel Stenberg <daniel@haxx.se>
Mon, 11 Jan 2021 08:18:30 +0000 (09:18 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 11 Jan 2021 11:32:58 +0000 (12:32 +0100)
Detected by scan-build

lib/vssh/libssh2.c

index ac2af07afe23cbca765513759cfb0e5278242d1d..4164c8a09bd9cc93d4c707644c8ab39c5f820252 100644 (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 */