1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

ztimer: initialized un-initialized timer objects

This commit is contained in:
Martine Lenders 2022-03-24 15:24:00 +01:00
parent 5aefb8d5dc
commit a81c5a527e
No known key found for this signature in database
GPG Key ID: 2134D77A5336DD80

View File

@ -110,7 +110,7 @@ int ztimer_msg_receive_timeout(ztimer_clock_t *clock, msg_t *msg,
return 1;
}
ztimer_t t;
ztimer_t t = { .base = { .next = NULL } };
msg_t m = { .type = MSG_ZTIMER, .content.ptr = &m };
ztimer_set_msg(clock, &t, timeout, &m, thread_getpid());