This is the mail archive of the
cygwin-patches
mailing list for the Cygwin project.
[PATCH 08/11] Fix typoed comparison
- From: Peter Foley <pefoley2 at pefoley dot com>
- To: cygwin-patches at cygwin dot com
- Cc: Peter Foley <pefoley2 at pefoley dot com>
- Date: Sat, 19 Mar 2016 13:45:54 -0400
- Subject: [PATCH 08/11] Fix typoed comparison
- Authentication-results: sourceware.org; auth=none
- References: <1458409557-13156-1-git-send-email-pefoley2 at pefoley dot com>
winsup/cygwin/ChangeLog
* thread.cc (semaphore::open): Fix mistaken conditional.
Signed-off-by: Peter Foley <pefoley2@pefoley.com>
---
winsup/cygwin/thread.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/winsup/cygwin/thread.cc b/winsup/cygwin/thread.cc
index 531d6a8..05757ac 100644
--- a/winsup/cygwin/thread.cc
+++ b/winsup/cygwin/thread.cc
@@ -3746,7 +3746,7 @@ semaphore::open (unsigned long long hash, LUID luid, int fd, int oflag,
for (semaphore *sema = semaphores.head; sema; sema = sema->next)
if (sema->fd >= 0 && sema->hash == hash
&& sema->luid.HighPart == luid.HighPart
- && sema->luid.LowPart == sema->luid.LowPart)
+ && sema->luid.LowPart == luid.LowPart)
{
wasopen = true;
semaphores.mx.unlock ();
--
2.7.4