check if next pointer is NULL, this happened on some E1s

This commit is contained in:
root 2007-11-09 11:09:53 +01:00
parent ee020d8efa
commit 0301d414d9
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ static inline msg_t *msg_dequeue(msg_queue_t *list)
prev = (msg_t *) list;
next = prev->next;
result = NULL;
if (next != prev) {
if (next && next != prev) {
result = next;
next = next->next;
list->len--;