mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-03 08:25:47 +03:00
bugfix
This commit is contained in:
1 parent
e996a100b5
commit
f7c41a85f5
1 file changed
+1
-1
+1
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user