From c433df06c00b2028f1ae5c4646e99148048c3c28 Mon Sep 17 00:00:00 2001 From: Patrick Pelissier Date: Thu, 13 Apr 2017 21:14:27 +0200 Subject: [PATCH] Micro-optimisation. --- m-list.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/m-list.h b/m-list.h index 24f89e6b..92cedd2b 100644 --- a/m-list.h +++ b/m-list.h @@ -143,13 +143,13 @@ { \ assert (v != NULL); \ struct M_C3(list_, name, _s) *it = *v; \ + *v = NULL; \ while (it != NULL) { \ struct M_C3(list_, name, _s) *next = it->next; \ M_GET_CLEAR oplist(it->data); \ M_C3(listi_,name,_del)(it); \ it = next; \ } \ - *v = NULL; \ } \ \ static inline void \