diff --git a/lib/ssh.c b/lib/ssh.c index 7e42b22490..7b5d1a7883 100644 --- a/lib/ssh.c +++ b/lib/ssh.c @@ -1493,7 +1493,7 @@ CURLcode Curl_sftp_do(struct connectdata *conn, bool *done) if (tmpLine == NULL) { return CURLE_OUT_OF_MEMORY; } - result = Curl_client_write(conn, CLIENTWRITE_BODY, tmpLine, 0); + res = Curl_client_write(conn, CLIENTWRITE_BODY, tmpLine, 0); Curl_safefree(tmpLine); } else {