From 45a388771686fd791fc753fa877fc794b04d3c32 Mon Sep 17 00:00:00 2001 From: ivmai Date: Thu, 30 Jun 2011 15:29:25 +0000 Subject: 2011-06-30 Ivan Maidanski * 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). --- specific.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'specific.c') diff --git a/specific.c b/specific.c index cbeb2331..98d86c31 100644 --- a/specific.c +++ b/specific.c @@ -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. */ -- cgit v1.2.1