Skip to content
Snippets Groups Projects
Commit 4b6626f8 authored by Oleg Hahm's avatar Oleg Hahm
Browse files

Merge pull request #3902 from OlegHahm/xtimer_initialize_variables

xtimer: initialize struct members
parents 172d1241 38148c2d
No related branches found
No related tags found
No related merge requests found
...@@ -45,6 +45,7 @@ void _xtimer_sleep(uint32_t offset, uint32_t long_offset) ...@@ -45,6 +45,7 @@ void _xtimer_sleep(uint32_t offset, uint32_t long_offset)
timer.callback = _callback_unlock_mutex; timer.callback = _callback_unlock_mutex;
timer.arg = (void*) &mutex; timer.arg = (void*) &mutex;
timer.target = timer.long_target = 0;
mutex_lock(&mutex); mutex_lock(&mutex);
_xtimer_set64(&timer, offset, long_offset); _xtimer_set64(&timer, offset, long_offset);
...@@ -173,6 +174,7 @@ int xtimer_msg_receive_timeout64(msg_t *m, uint64_t timeout) { ...@@ -173,6 +174,7 @@ int xtimer_msg_receive_timeout64(msg_t *m, uint64_t timeout) {
tmsg.content.ptr = (char *) &tmsg; tmsg.content.ptr = (char *) &tmsg;
xtimer_t t; xtimer_t t;
t.target = t.long_target = 0;
xtimer_set_msg64(&t, timeout, &tmsg, sched_active_pid); xtimer_set_msg64(&t, timeout, &tmsg, sched_active_pid);
msg_receive(m); msg_receive(m);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment