aboutsummaryrefslogtreecommitdiffstats
path: root/common/list.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/list.c')
-rw-r--r--common/list.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/common/list.c b/common/list.c
index d57234e3..dd864a9b 100644
--- a/common/list.c
+++ b/common/list.c
@@ -5,6 +5,9 @@
5 5
6list_t *create_list(void) { 6list_t *create_list(void) {
7 list_t *list = malloc(sizeof(list_t)); 7 list_t *list = malloc(sizeof(list_t));
8 if (!list) {
9 return NULL;
10 }
8 list->capacity = 10; 11 list->capacity = 10;
9 list->length = 0; 12 list->length = 0;
10 list->items = malloc(sizeof(void*) * list->capacity); 13 list->items = malloc(sizeof(void*) * list->capacity);