From f7c41a85f5bdacc129bbb24c87e6d2f7f19bb131 Mon Sep 17 00:00:00 2001 From: Olaf Bergmann Date: Mon, 2 Jan 2012 21:37:39 +0100 Subject: [PATCH] bugfix --- resource.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resource.c b/resource.c index edabe81a..7e988816 100644 --- a/resource.c +++ b/resource.c @@ -107,7 +107,7 @@ coap_add_attr(coap_resource_t *resource, if (!resource || !name) return NULL; -#ifdef WITH_CONTIKI +#ifndef WITH_CONTIKI attr = (coap_attr_t *)coap_malloc(sizeof(coap_attr_t)); #else /* WITH_CONTIKI */ attr = (coap_attr_t *)memb_alloc(&attribute_storage);