Orion
Barry Moving signal handlers into separate namespace 7ae31b0 (2 years, 4 months ago)diff --git a/task/schedule.c b/task/schedule.c index 1c00576..527b9ec 100644 --- a/task/schedule.c +++ b/task/schedule.c @@ -103,6 +103,8 @@ Task * pop_from_queue(TaskQueue *queue) { Task *head = queue->start; + if (!head) + return NULL; queue->start = head->next; if (!queue->start) queue->end = NULL;