From 060ff72fd45dc418e9273bff7b4c7e65eedc5308 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 3 Oct 2009 19:34:14 +0000 Subject: [PATCH] undo --- src/util/container_slist.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util/container_slist.c b/src/util/container_slist.c index 192429e6c..1a03fdca3 100644 --- a/src/util/container_slist.c +++ b/src/util/container_slist.c @@ -92,6 +92,7 @@ struct GNUNET_CONTAINER_SList_Iterator struct GNUNET_CONTAINER_SList_Elem *elem; }; + /** * Create a new element that is to be inserted into the list * @internal @@ -112,14 +113,13 @@ create_elem (enum GNUNET_CONTAINER_SListDisposition disp, e = GNUNET_malloc (sizeof (struct GNUNET_CONTAINER_SList_Elem) + len); memcpy (&e[1], buf, len); e->elem = (void*) &e[1]; - e->disp = GNUNET_CONTAINER_SLIST_DISPOSITION_DYNAMIC; } else { e = GNUNET_malloc (sizeof (struct GNUNET_CONTAINER_SList_Elem)); e->elem = (void*) buf; - e->disp = disp; } + e->disp = disp; e->len = len; return e; } -- 2.25.1