[615] in Pthreads mailing list archive

home help back first fref pref prev next nref lref last post

another bug in pthread_prio_queue_remove

daemon@ATHENA.MIT.EDU (Mati Sauks)
Thu Mar 20 16:31:53 1997

From: "Mati Sauks" <mati@psti.com>
To: pthreads@MIT.EDU
Date: Thu, 20 Mar 1997 11:04:44 -0500
Reply-To: mati@psti.com
X-Confirm-Reading-To: mati@psti.com

Hi
I have run across another bug...
line 143 of prio_queue.c, 
in pthread_prio_queue_remove
should read

 if (((*current)->next != NULL) &&
     ((*current)->next->pthread_priority == priority)) 

since (*current)->next may be NULL!!
mati
    

Mati Sauks  (mati@psti.com)       Precise Software Technologies Inc.
Suite #308,  301 Moodie Drive,    Nepean,  Ontario, K2H 9C4 Canada
Phone: (613)-596-2251             Fax: (613)-596-6713
Web: http://www.psti.com
"The Royalty-Free Alternative for Advanced Real-Time Applications"
====================================================================

home help back first fref pref prev next nref lref last post