diff options
Diffstat (limited to 'common/list.c')
-rw-r--r-- | common/list.c | 3 |
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 | ||
50 | void list_cat(list_t *list, list_t *source) { | 50 | void 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 | } |