1
0
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:
Jan S 2014-05-12 02:47:06 +02:00
parent ba907471f3
commit 836b8b9d2d

View File

@ -106,6 +106,6 @@ void print_failed(void)
void init_payload(void)
{
pipa = malloc(sizeof(pipa));
pipa = malloc(sizeof(*pipa));
pipa->payload = NULL;
}