From 5bbea163f23cab321fc9b7f4add27ffaf5437d0c Mon Sep 17 00:00:00 2001 From: Sebastian Wilhelmi Date: Sun, 10 Mar 2002 09:15:09 +0000 Subject: [PATCH] Do a comparison, not an assignment, stupid! Spotted by Daniel Elstner 2002-03-10 Sebastian Wilhelmi * gthread-posix.c (g_thread_create_posix_impl): Do a comparison, not an assignment, stupid! Spotted by Daniel Elstner . --- gthread/ChangeLog | 6 ++++++ gthread/gthread-posix.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gthread/ChangeLog b/gthread/ChangeLog index 09e67d4..9a1070b 100644 --- a/gthread/ChangeLog +++ b/gthread/ChangeLog @@ -1,3 +1,9 @@ +2002-03-10 Sebastian Wilhelmi + + * gthread-posix.c (g_thread_create_posix_impl): Do a comparison, + not an assignment, stupid! Spotted by Daniel Elstner + . + 2002-02-09 Sebastian Wilhelmi * gthread-impl.c: Only compile most of this file, if diff --git a/gthread/gthread-posix.c b/gthread/gthread-posix.c index b65c9d5..4df20b5 100644 --- a/gthread/gthread-posix.c +++ b/gthread/gthread-posix.c @@ -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) -- 2.7.4