1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-15 01:57:40 -05:00

Remove some redundant variables and assignments.

This fixes a batch of clang-analyzer warnings of the form 'you
declared / assigned this variable and then never use it'. It doesn't
fix _all_ of them - some are there so that when I add code in the
future _it_ can use the variable without me having to remember to
start setting it - but these are the ones I thought it would make the
code better instead of worse to fix.
This commit is contained in:
Simon Tatham
2018-12-01 14:06:44 +00:00
parent d2ff948207
commit b54147de4b
9 changed files with 19 additions and 29 deletions

View File

@ -445,14 +445,14 @@ char *dir_file_cat(const char *dir, const char *file)
static int ssh_sftp_do_select(bool include_stdin, bool no_fds_ok)
{
fd_set rset, wset, xset;
int i, fdcount, fdsize, *fdlist;
int fd, fdstate, rwx, ret, maxfd;
int i, fdsize, *fdlist;
int fd, fdcount, fdstate, rwx, ret, maxfd;
unsigned long now = GETTICKCOUNT();
unsigned long next;
bool done_something = false;
fdlist = NULL;
fdcount = fdsize = 0;
fdsize = 0;
do {