Fix warning that local variable may be used uninitialized in mem.c

This commit is contained in:
Dirk Ziegelmeier 2017-01-05 08:07:41 +01:00
parent 8760fb677f
commit 803a711e6a

View File

@ -166,7 +166,7 @@ void *
mem_malloc(mem_size_t size)
{
void *ret;
struct memp_malloc_helper *element;
struct memp_malloc_helper *element = NULL;
memp_t poolnr;
mem_size_t required_size = size + LWIP_MEM_ALIGN_SIZE(sizeof(struct memp_malloc_helper));