BarryServer : Git

All the code for all my projects
// BarryServer : Git / Orion / commit / 7ae31b03c38925f5d527e6303765925586731209 / task / schedule.c

// Related

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;