Tue May 20 12:15:42 EDT 2008 Pekka.Pessi@nokia.com

* sres_blocking.c: fixed klocwork issues


git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8620 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris 2008-05-25 15:08:38 +00:00
parent 8826832fa6
commit bdd90b2b47
2 changed files with 4 additions and 2 deletions

View File

@ -1 +1 @@
Sun May 25 11:07:19 EDT 2008
Sun May 25 11:08:26 EDT 2008

View File

@ -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)