summaryrefslogtreecommitdiffstats
path: root/devel/linuxthreads
diff options
context:
space:
mode:
authortegge <tegge@FreeBSD.org>2006-01-24 15:19:48 +0000
committertegge <tegge@FreeBSD.org>2006-01-24 15:19:48 +0000
commit7bc623d4079daf1b00cb2a4c8e8baebcd29517ae (patch)
tree7c5a371560d7ac395036f954a8503c3a999d297b /devel/linuxthreads
parentcad4a582c46de1caf8b067ef6d68e6ffb558cdfc (diff)
downloadFreeBSD-ports-7bc623d4079daf1b00cb2a4c8e8baebcd29517ae.zip
FreeBSD-ports-7bc623d4079daf1b00cb2a4c8e8baebcd29517ae.tar.gz
Avoid using variable after end of semantic life time.
Diffstat (limited to 'devel/linuxthreads')
-rw-r--r--devel/linuxthreads/files/condwait-patch4
1 files changed, 2 insertions, 2 deletions
diff --git a/devel/linuxthreads/files/condwait-patch b/devel/linuxthreads/files/condwait-patch
index 5e9c45a..d395281 100644
--- a/devel/linuxthreads/files/condwait-patch
+++ b/devel/linuxthreads/files/condwait-patch
@@ -167,7 +167,7 @@ diff -ru ../../work.nc/linuxthreads-2.2.3_19/condvar.c ./condvar.c
+ oldcva,
+ oldcva | CVA_AVAIL));
+ WRITE_MEMORY_BARRIER();
-+ if ((th->p_condvar_avail & CVA_EXTRA_RESTART) != 0)
++ if ((oldcva & CVA_EXTRA_RESTART) != 0)
+ restart(th);
+ } else {
+ th->p_condvar_avail = CVA_AVAIL;
@@ -207,7 +207,7 @@ diff -ru ../../work.nc/linuxthreads-2.2.3_19/condvar.c ./condvar.c
+ oldcva,
+ oldcva | CVA_AVAIL));
+ WRITE_MEMORY_BARRIER();
-+ if ((th->p_condvar_avail & CVA_EXTRA_RESTART) != 0)
++ if ((oldcva & CVA_EXTRA_RESTART) != 0)
+ restart(th);
+ } else {
+ th->p_condvar_avail = CVA_AVAIL;
OpenPOWER on IntegriCloud