diff options
| author | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2008-07-18 16:31:17 -0400 |
|---|---|---|
| committer | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2008-07-18 16:31:17 -0400 |
| commit | 34770c2be5a07a7d83a0cb63ca4f2dbbd2c83fcb (patch) | |
| tree | ad8a95e92f879d3615ed83212f09a016dc6f7c59 /include | |
| parent | 7310547d72e6d0f7096a8809e4fd0c104543ad4e (diff) | |
litmus heaps: initialize min to null
This fixes a copy&paste bug reported by John.
Diffstat (limited to 'include')
| -rw-r--r-- | include/litmus/heap.h | 2 |
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); | |||
| 31 | static inline void heap_init(struct heap* heap) | 31 | static 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 | ||
| 37 | static inline void heap_node_init(struct heap_node** _h, void* value) | 37 | static inline void heap_node_init(struct heap_node** _h, void* value) |
