X-Git-Url: https://www.tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Flist.c;h=e2eeabccfac7a4644ac89e8f387465da9a158a5b;hb=de8e6bf452227094a8aadd32dd5ea0d94d4b5db9;hp=2dd414a0cdad467718b01be0f4dfd76cf9620d6f;hpb=70a1a5594af5d4e6a364186b42ba4e34c676009b;p=tinc diff --git a/src/list.c b/src/list.c index 2dd414a0..e2eeabcc 100644 --- a/src/list.c +++ b/src/list.c @@ -26,7 +26,7 @@ /* (De)constructors */ list_t *list_alloc(list_action_t delete) { - list_t *list = xmalloc_and_zero(sizeof(list_t)); + list_t *list = xzalloc(sizeof(list_t)); list->delete = delete; return list; @@ -37,7 +37,7 @@ void list_free(list_t *list) { } list_node_t *list_alloc_node(void) { - return xmalloc_and_zero(sizeof(list_node_t)); + return xzalloc(sizeof(list_node_t)); } void list_free_node(list_t *list, list_node_t *node) {