diff --git a/core/msg.c b/core/msg.c index f9042e1681..507bcb05af 100644 --- a/core/msg.c +++ b/core/msg.c @@ -10,7 +10,9 @@ * @ingroup kernel_msg * @{ * @file + * @author Freie Universität Berlin, Computer Systems & Telematics, FeuerWhere project * @author Kaspar Schleiser + * @author Oliver Hahm * @} */ @@ -80,6 +82,7 @@ int msg_send(msg_t *m, unsigned int target_pid, bool block) queue_node_t n; n.priority = active_thread->priority; n.data = (unsigned int) active_thread; + n.next = NULL; DEBUG("%s: Adding node to msg_waiters:\n", active_thread->name); queue_priority_add(&(target->msg_waiters), &n);