diff options
Diffstat (limited to 'include/list.h')
-rw-r--r-- | include/list.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/list.h b/include/list.h index c67b24b2..a0f23c85 100644 --- a/include/list.h +++ b/include/list.h @@ -56,7 +56,8 @@ typedef struct list { static inline element_t *get_head(list_t *list) { - return &list->element_prealloc_buf[0]; + /* The first element is the head */ + return list->element_prealloc_buf; } |