Fix CPU usage due to missing initialization of wfds.

This commit is contained in:
Vic Lee 2011-08-16 11:13:30 +08:00
parent c2eb63b071
commit 1301fa33c0
2 changed files with 2 additions and 0 deletions

View File

@ -293,6 +293,7 @@ int dfreerdp_run(freerdp* instance)
max_fds = 0;
FD_ZERO(&rfds_set);
FD_ZERO(&wfds_set);
for (i = 0; i < rcount; i++)
{

View File

@ -451,6 +451,7 @@ int xfreerdp_run(freerdp* instance)
max_fds = 0;
FD_ZERO(&rfds_set);
FD_ZERO(&wfds_set);
for (i = 0; i < rcount; i++)
{