aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjoern B. Brandenburg <bbb@cs.unc.edu>2008-07-18 16:31:17 -0400
committerBjoern B. Brandenburg <bbb@cs.unc.edu>2008-07-18 16:31:17 -0400
commit34770c2be5a07a7d83a0cb63ca4f2dbbd2c83fcb (patch)
treead8a95e92f879d3615ed83212f09a016dc6f7c59
parent7310547d72e6d0f7096a8809e4fd0c104543ad4e (diff)
litmus heaps: initialize min to null
This fixes a copy&paste bug reported by John.
-rw-r--r--include/litmus/heap.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/litmus/heap.h b/include/litmus/heap.h
index b26804f879..0b0ede4542 100644
--- a/include/litmus/heap.h
+++ b/include/litmus/heap.h
@@ -31,7 +31,7 @@ typedef int (*heap_prio_t)(struct heap_node* a, struct heap_node* b);
31static inline void heap_init(struct heap* heap) 31static inline void heap_init(struct heap* heap)
32{ 32{
33 heap->head = NULL; 33 heap->head = NULL;
34 heap->head = NULL; 34 heap->min = NULL;
35} 35}
36 36
37static inline void heap_node_init(struct heap_node** _h, void* value) 37static inline void heap_node_init(struct heap_node** _h, void* value)