mirror of https://github.com/FreeRDP/FreeRDP
Merge pull request #2546 from akallabeth/error_fixes
Fixed some warnings
This commit is contained in:
commit
f5cdae5586
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue