More Codacy

This commit is contained in:
Linus Probert 2017-12-13 23:35:06 +01:00
parent 7625e02d21
commit 0fcf0afc39
1 changed files with 1 additions and 2 deletions

View File

@ -184,13 +184,12 @@ increase(int *number)
START_TEST (test_linkedlist_each) START_TEST (test_linkedlist_each)
{ {
LinkedList *list; LinkedList *list;
int *append;
int i; int i;
list = linkedlist_create(); list = linkedlist_create();
for (i = 0; i < 10; ++i) { for (i = 0; i < 10; ++i) {
append = malloc(sizeof(int)); int *append = malloc(sizeof(int));
*append = i; *append = i;
linkedlist_append(&list, append); linkedlist_append(&list, append);
} }