[Freeswitch-svn] [commit] r8625 - in freeswitch/trunk/libs/sofia-sip: . libsofia-sip-ua/su

Freeswitch SVN mikej at freeswitch.org
Sun May 25 11:13:10 EDT 2008


Author: mikej
Date: Sun May 25 11:13:10 2008
New Revision: 8625

Modified:
   freeswitch/trunk/libs/sofia-sip/.update
   freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/su/su_wait.c

Log:
Tue May 20 13:32:51 EDT 2008  Pekka.Pessi at nokia.com
  * su_wait.c: fixed klocwork issues


Modified: freeswitch/trunk/libs/sofia-sip/.update
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/.update	(original)
+++ freeswitch/trunk/libs/sofia-sip/.update	Sun May 25 11:13:10 2008
@@ -1 +1 @@
-Sun May 25 11:11:31 EDT 2008
+Sun May 25 11:12:25 EDT 2008

Modified: freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/su/su_wait.c
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/su/su_wait.c	(original)
+++ freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/su/su_wait.c	Sun May 25 11:13:10 2008
@@ -186,16 +186,14 @@
 {
 #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;
 }
 



More information about the Freeswitch-svn mailing list