about summary refs log tree commit diff
path: root/include/list.h
diff options
context:
space:
mode:
authorDominik Maier <domenukk@gmail.com>2020-04-01 18:19:43 +0200
committerDominik Maier <domenukk@gmail.com>2020-04-01 18:19:43 +0200
commitb5c5496b2fa9703bcdf7ab685499ae976a9107f6 (patch)
treed6cb9383ad66883bac23470a32765d427da258a2 /include/list.h
parent4aec6dabdefda50a5c16637cea2300b63723a1ba (diff)
downloadafl++-b5c5496b2fa9703bcdf7ab685499ae976a9107f6.tar.gz
list testcase added
Diffstat (limited to 'include/list.h')
-rw-r--r--include/list.h3
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;
 
 }