From 50ce6bad07cbac05c9fcb5d239bc06ab9e17ce91 Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Fri, 30 Sep 2016 19:55:39 -0400 Subject: [PATCH] provide a way to detect a destroyed list --- lib/list.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/list.c b/lib/list.c index 36c321c64..aa87553de 100644 --- a/lib/list.c +++ b/lib/list.c @@ -57,7 +57,7 @@ void list_destroy(struct list *l, dtor_cb_t destructor, bool release) l->array = NULL; - l->length = + l->length = -1; l->capacity = 0; pthread_mutex_unlock(&l->lock);