Merge pull request #2546 from akallabeth/error_fixes

Fixed some warnings
This commit is contained in:
Bernhard Miklautz 2015-04-16 10:58:27 +02:00
commit f5cdae5586
2 changed files with 4 additions and 4 deletions

View File

@ -629,11 +629,11 @@ static int cliprdr_server_receive_format_list(CliprdrServerContext* context, wSt
for (index = 0; index < formatList.numFormats; index++)
{
if (formats[index].formatName)
free(formats[index].formatName);
if (formatList.formats[index].formatName)
free(formatList.formats[index].formatName);
}
free(formats);
free(formatList.formats);
return 1;
}

View File

@ -842,7 +842,7 @@ int freerdp_tcp_connect_multi(char** hostnames, int count, int port, int timeout
int flags;
int maxfds;
fd_set cfds;
int sockfd;
int sockfd = -1;
int* sockfds;
char port_str[16];
socklen_t optlen;