tests: xtimer_msg_receive_timeout: initialize values

Fixes #4372
This commit is contained in:
Martine Lenders 2016-03-31 18:08:54 +02:00
parent ecf7b46155
commit dcda44e9ea

View File

@ -37,6 +37,8 @@ int main(void)
xtimer_t t; xtimer_t t;
int64_t offset = -1000; int64_t offset = -1000;
tmsg.type = 44; tmsg.type = 44;
t.target = 0;
t.long_target = 0;
for (int i = 0; i < 10; i++) { for (int i = 0; i < 10; i++) {
xtimer_set_msg(&t, TEST_PERIOD + offset, &tmsg, sched_active_pid); xtimer_set_msg(&t, TEST_PERIOD + offset, &tmsg, sched_active_pid);