diff options
author | ivmai <ivmai> | 2011-06-30 15:29:25 +0000 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2011-07-26 21:07:00 +0400 |
commit | 45a388771686fd791fc753fa877fc794b04d3c32 (patch) | |
tree | c1c6ac0075568e9e1a65b5fc87a6275319d92c99 /specific.c | |
parent | ac6f0f9e72e1e723b13a2fa9e3ea78c950e8de10 (diff) | |
download | bdwgc-45a388771686fd791fc753fa877fc794b04d3c32.tar.gz |
2011-06-30 Ivan Maidanski <ivmai@mail.ru>
* pthread_support.c (GC_segment_is_thread_stack): Replace '&'
operator with '&&' one in conditional expressions.
* specific.c (remove_specific): Dereference "entry" local variable
only if it is non-NULL.
* include/gc.h (GC_NEW): Refine the comment (about the returned
value).
Diffstat (limited to 'specific.c')
-rw-r--r-- | specific.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -82,8 +82,8 @@ void PREFIXED(remove_specific) (tsd * key) { } /* Invalidate qtid field, since qtids may be reused, and a later */ /* cache lookup could otherwise find this entry. */ - entry -> qtid = INVALID_QTID; if (entry != NULL) { + entry -> qtid = INVALID_QTID; *link = entry -> next; /* Atomic! concurrent accesses still work. */ /* They must, since readers don't lock. */ |