Commit ba62199f authored by Pekka Pessi's avatar Pekka Pessi

su_wait.c: fixed klocwork issues

darcs-hash:20080520173251-65a35-f6c938791fa85302e2ee35d556c4532a2f63491a.gz
parent 088413ec
......@@ -186,16 +186,14 @@ int su_wait_destroy(su_wait_t *waitobj)
{
#if SU_HAVE_WINSOCK
su_wait_t w0 = NULL;
assert(waitobj != NULL);
if (*waitobj)
WSACloseEvent(*waitobj);
#elif SU_HAVE_POLL || HAVE_SELECT
su_wait_t w0 = { INVALID_SOCKET, 0, 0 };
#else
su_wait_t w0 = { INVALID_SOCKET, 0, 0 };
#endif
assert(waitobj != NULL);
*waitobj = w0;
#endif
return waitobj ? 0 : -1;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment