diff options
author | tegge <tegge@FreeBSD.org> | 2006-01-24 15:19:48 +0000 |
---|---|---|
committer | tegge <tegge@FreeBSD.org> | 2006-01-24 15:19:48 +0000 |
commit | 7bc623d4079daf1b00cb2a4c8e8baebcd29517ae (patch) | |
tree | 7c5a371560d7ac395036f954a8503c3a999d297b /devel/linuxthreads | |
parent | cad4a582c46de1caf8b067ef6d68e6ffb558cdfc (diff) | |
download | FreeBSD-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-patch | 4 |
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; |