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 09e67d462c01401ddaeadc525beb7fb8ddeaa9ee..9a1070bb54b19913474fd6b11e532496e1649207 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 b65c9d57bb626aaca9b281b9789d7c7052af5d3c..4df20b58cdf03aab9777d7e1ba574ef47e5b44b5 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)