Commit 41ba4d29 authored by Pekka Pessi's avatar Pekka Pessi

sres_blocking.c: fixed klocwork issues

darcs-hash:20080520161542-65a35-ff85265d8574adcfca61db0b47fa64b4870e2d61.gz
parent d754b1b1
......@@ -111,7 +111,7 @@ int sres_blocking_update(sres_blocking_t *b,
sres_socket_t new_socket,
sres_socket_t old_socket)
{
int i, N = b->n_sockets;
int i, N;
if (b == NULL)
return -1;
......@@ -123,6 +123,8 @@ int sres_blocking_update(sres_blocking_t *b,
return 0;
}
N = b->n_sockets;
if (old_socket != INVALID_SOCKET) {
for (i = 0; i < N; i++) {
if (b->fds[i].fd == old_socket)
......
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