Whoops, we were copying instead of comparing at the end of trying to

find a queue element.

Notified by nagendra modadugu <nagendra@cs.stanford.edu>
This commit is contained in:
Richard Levitte 2005-12-20 07:03:10 +00:00
parent 3b4a0225e2
commit ee8f293701

View file

@ -184,7 +184,7 @@ pqueue_find(pqueue_s *pq, unsigned char *prio64be)
}
/* check the one last node */
if ( memcpy(next->priority, prio64be,8) ==0)
if ( memcmp(next->priority, prio64be,8) ==0)
found = next;
if ( ! found)