mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
sys/ping/ping.c: malloc size of type, not size of pointer
This commit is contained in:
parent
ba907471f3
commit
836b8b9d2d
@ -106,6 +106,6 @@ void print_failed(void)
|
||||
|
||||
void init_payload(void)
|
||||
{
|
||||
pipa = malloc(sizeof(pipa));
|
||||
pipa = malloc(sizeof(*pipa));
|
||||
pipa->payload = NULL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user