mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-08-24 07:05:56 +00:00
Fix warning that local variable may be used uninitialized in mem.c
This commit is contained in:
parent
8760fb677f
commit
803a711e6a
|
@ -166,7 +166,7 @@ void *
|
||||||
mem_malloc(mem_size_t size)
|
mem_malloc(mem_size_t size)
|
||||||
{
|
{
|
||||||
void *ret;
|
void *ret;
|
||||||
struct memp_malloc_helper *element;
|
struct memp_malloc_helper *element = NULL;
|
||||||
memp_t poolnr;
|
memp_t poolnr;
|
||||||
mem_size_t required_size = size + LWIP_MEM_ALIGN_SIZE(sizeof(struct memp_malloc_helper));
|
mem_size_t required_size = size + LWIP_MEM_ALIGN_SIZE(sizeof(struct memp_malloc_helper));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user