commit 2e59d4b247f144e26bc3577776dba3c40f7fbf70 parent 1ac3042d4977edf25a8e476912a42f2143c68eef Author: Louis Burda <quent.burda@gmail.com> Date: Mon, 14 Feb 2022 18:15:48 +0100 Fix off-by-one in list_front Diffstat:
M | src/list.c | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/list.c b/src/list.c @@ -113,7 +113,7 @@ list_at(struct list *list, int n) struct link * list_front(struct list *list) { - return list_at(list, 1); + return list_at(list, 0); } struct link *