halayli/lthread — Issue #7: lthread_create not initializing new_next and sleep_next correctly?
Author: zoolib
Created: 2012-03-04 17:21:45+00:00
State: open

new_next and sleep_next are initialized as follows:
lt->new_next.le_next = NULL;
lt->new_next.le_next = NULL;
lt->sleep_next.le_prev = NULL;
lt->sleep_next.le_prev = NULL;

should it not be as follows?
lt->new_next.le_next = NULL;
lt->new_next.le_prev = NULL;
lt->sleep_next.le_next = NULL;
lt->sleep_next.le_prev = NULL;