diff options
Diffstat (limited to 'common')
-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) { } void list_cat(list_t *list, list_t *source) { - int i; - for (i = 0; i < source->length; ++i) { + for (int i = 0; i < source->length; ++i) { list_add(list, source->items[i]); } } |