Do a comparison, not an assignment, stupid! Spotted by Daniel Elstner
authorSebastian Wilhelmi <wilhelmi@ira.uka.de>
Sun, 10 Mar 2002 09:15:09 +0000 (09:15 +0000)
committerSebastian Wilhelmi <wilhelmi@src.gnome.org>
Sun, 10 Mar 2002 09:15:09 +0000 (09:15 +0000)
2002-03-10  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* gthread-posix.c (g_thread_create_posix_impl): Do a comparison,
not an assignment, stupid! Spotted by Daniel Elstner
<daniel.elstner@gmx.net>.

gthread/ChangeLog
gthread/gthread-posix.c

index 09e67d4..9a1070b 100644 (file)
@@ -1,3 +1,9 @@
+2002-03-10  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * gthread-posix.c (g_thread_create_posix_impl): Do a comparison,
+       not an assignment, stupid! Spotted by Daniel Elstner
+       <daniel.elstner@gmx.net>.
+
 2002-02-09  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
        * gthread-impl.c: Only compile most of this file, if
index b65c9d5..4df20b5 100644 (file)
@@ -212,7 +212,7 @@ g_cond_timed_wait_posix_impl (GCond * cond,
 #ifdef G_THREADS_IMPL_POSIX
   timed_out = (result == ETIMEDOUT);
 #else /* G_THREADS_IMPL_DCE */
-  timed_out = (result == -1) && (errno = EAGAIN);
+  timed_out = (result == -1) && (errno == EAGAIN);
 #endif
 
   if (!timed_out)