Author: grothoff
Date: 2005-06-26 07:02:47 -0700 (Sun, 26 Jun 2005)
New Revision: 1061

Modified:
   GNUnet/src/util/semaphore.c
Log:
extr a check

Modified: GNUnet/src/util/semaphore.c
===================================================================
--- GNUnet/src/util/semaphore.c 2005-06-26 13:38:03 UTC (rev 1060)
+++ GNUnet/src/util/semaphore.c 2005-06-26 14:02:47 UTC (rev 1061)
@@ -312,6 +312,7 @@
 int PTHREAD_SELF_TEST(PTHREAD_T * pt) {
   pthread_t * handle;
 
+  GNUNET_ASSERT(pt != NULL);
   handle = pt->internal;
   if (handle == NULL)
     return NO;
@@ -387,8 +388,10 @@
   int k;
   pthread_t * handle;
 
+  GNUNET_ASSERT(pt != NULL);
   handle = pt->internal;
   GNUNET_ASSERT(handle != NULL);
+  GNUNET_ASSERT(NO == PTHREAD_SELF_TEST(pt));
   switch ((k=pthread_join(*handle, ret))) {
   case 0:
     FREE(handle);



_______________________________________________
GNUnet-SVN mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/gnunet-svn

Reply via email to