]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Tue May 20 13:32:51 EDT 2008 Pekka.Pessi@nokia.com
authorMichael Jerris <mike@jerris.com>
Sun, 25 May 2008 15:13:10 +0000 (15:13 +0000)
committerMichael Jerris <mike@jerris.com>
Sun, 25 May 2008 15:13:10 +0000 (15:13 +0000)
  * su_wait.c: fixed klocwork issues

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8625 d0543943-73ff-0310-b7d9-9358b9ac24b2

libs/sofia-sip/.update
libs/sofia-sip/libsofia-sip-ua/su/su_wait.c

index f5ba4231768c9c7d862171845beba3dcb4591f9b..a18190171eabc1337b0cfb4725df037dae3eb77c 100644 (file)
@@ -1 +1 @@
-Sun May 25 11:11:31 EDT 2008
+Sun May 25 11:12:25 EDT 2008
index 09c7ed930ad9a13b18f58d1b712d821fa27e643c..3898a570a72dde2fc67d2bf06e6ba7cb0f58e0de 100644 (file)
@@ -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;
 }