aboutsummaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/list.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/common/list.c b/common/list.c
index a0b42512..2a803702 100644
--- a/common/list.c
+++ b/common/list.c
@@ -48,8 +48,7 @@ void list_del(list_t *list, int index) {
48} 48}
49 49
50void list_cat(list_t *list, list_t *source) { 50void list_cat(list_t *list, list_t *source) {
51 int i; 51 for (int i = 0; i < source->length; ++i) {
52 for (i = 0; i < source->length; ++i) {
53 list_add(list, source->items[i]); 52 list_add(list, source->items[i]);
54 } 53 }
55} 54}