from trunk: allow min_heap_erase to be called on removed members; from liusifan

svn:r850
This commit is contained in:
Niels Provos 2008-06-12 14:45:29 +00:00
parent a78d92c4c1
commit d5c3cdca20
2 changed files with 2 additions and 1 deletions

View File

@ -2,6 +2,7 @@ Changes in 1.4.5-stable:
o Fix connection keep-alive behavior for HTTP/1.0
o Fix use of freed memory in event_reinit; pointed out by Peter Postma
o Constify struct timeval * where possible; pointed out by Forest Wilkinson
o allow min_heap_erase to be called on removed members; from liusifan.
Changes in 1.4.4-stable:
o Correct the documentation on buffer printf functions.

View File

@ -75,8 +75,8 @@ struct event* min_heap_pop(min_heap_t* s)
if(s->n)
{
struct event* e = *s->p;
e->min_heap_idx = -1;
min_heap_shift_down_(s, 0u, s->p[--s->n]);
e->min_heap_idx = -1;
return e;
}
return 0;