瀏覽代碼

Fix double-linked list manipulation

Samuel Thibault 10 年之前
父節點
當前提交
80b986bb73
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      tests/sched_ctx/sched_ctx_list.c

+ 1 - 0
tests/sched_ctx/sched_ctx_list.c

@@ -168,6 +168,7 @@ int main(int argc, char **argv)
 	/* Delete this list, the function is internal only so we need to modify the list pointers too */
 	ret = 1;
 	found_list = ctx_list->next;
+	found_list->prev = ctx_list->prev;
 	_starpu_sched_ctx_list_remove_all(ctx_list);
 	ctx_list = found_list;
 	found_list = _starpu_sched_ctx_list_find(ctx_list, 999);